commande.php
Upload User: feiyaoda
Upload Date: 2016-11-21
Package Size: 9556k
Code Size: 1k
Category:

WEB Mail

Development Platform:

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>