commande.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:1k
- //script commande
- <?
- session_start();
- session_register("list");
- if (!IsSet($list)) {
- $list = "";
- }
- $split = explode(",",$list);
- if ($list == "") {
- $list = "$id+$montant";
- } else {
- $split = explode(",", $list);
- foreach ($split as $item) {
- $check = explode("+", $item);
- if ($check[0] == $id) {
- $n=$check[0];
- $list = str_replace("$check[0]+$check[1]","$check[0]+$montant",$list);
- $replace = "ok";
- }
- }
- if (!IsSet($replace)) {
- $list = "$list,$id+$montant";
- }
- }
- echo"<input type=hidden name=i value=$n>";
- ?>
- <script>
- document.location='?m=client&a=caddie';
- </script>
-