首頁 >後端開發 >php教程 >php处置批量提交

php处置批量提交

WBOY
WBOY原創
2016-06-13 10:32:25775瀏覽

php处理批量提交

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->                

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->    $buynum = isset($buynum) && is_numeric($buynum) ? $buynum : 1;    $id =empty($id)? "" : intval($id);    $buynum = ($buynum GetOne("SELECT id,channel,title FROM #@__archives WHERE id='$id'");    if(!is_array($rs))    {        ShowMsg("该商品已不存在!","-1");        exit();    }    $cts = GetChannelTable($rs['channel']);    $rows = $dsql->GetOne("SELECT aid as id,trueprice as price,units FROM `$cts[addtable]` WHERE aid='$id'");    if(!is_array($rows))    {        ShowMsg("该商品已不存在!","-1");        exit();    }    $rows['buynum'] = $buynum;    $rows['title']     = $rs['title'];    $cart->addItem($id, $rows);    ShowMsg("已添加加到购物车,<a href="car.php">查看购物车</a>","car.php");    exit();


我需要如何修改才能将id提交的内容到php?

------解决方案--------------------
探讨
因为id=的值不是固定的,所以这个好像一点用都没有吧?
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn