commande.php
上传用户:feiyaoda
上传日期:2016-11-21
资源大小:9556k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

PHP

  1. //script commande
  2. <?
  3. session_start();
  4. session_register("list");
  5. if (!IsSet($list)) {
  6. $list = "";
  7. }
  8. $split = explode(",",$list);
  9. if ($list == "") {
  10. $list = "$id+$montant";
  11. } else {
  12. $split = explode(",", $list);
  13. foreach ($split as $item) {
  14. $check = explode("+", $item);
  15. if ($check[0] == $id) {
  16.                        $n=$check[0];
  17. $list = str_replace("$check[0]+$check[1]","$check[0]+$montant",$list);
  18. $replace = "ok";
  19. }
  20. if (!IsSet($replace)) {
  21. $list = "$list,$id+$montant";
  22. }
  23. }
  24. echo"<input type=hidden name=i value=$n>";
  25. ?>
  26. <script>
  27. document.location='?m=client&a=caddie';
  28. </script>