php处置批量提交
程序员文章站
2024-02-12 10:32:04
...
php处理批量提交
我需要如何修改才能将id提交的内容到php?
------解决方案--------------------
- HTML code
- PHP code
$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("已添加加到购物车,查看购物车","car.php"); exit();
我需要如何修改才能将id提交的内容到php?
------解决方案--------------------
相关文章
相关视频