//加入购物车 elseif($enews=="AddBuycar") { $classid=$_GET['classid']; $id=$_GET['id']; if($_GET['addcar']==0) { esetcookie("mybuycar",'',0); echo"<script>self.location.href='index.php?addcar=1&enews=AddBuycar&classid=$classid&id=$id';</script>"; exit(); } AddBuycar($classid,$id); }
换成上面代码看看
|