这里是我的形式组织接线柱阵列
<form name="input" action="http://localhost/shopper/index.php?route=module/cart/insert_shopper" method="post">
<input quantity="4" type="hidden" name="28" value="1">
<input type="hidden" quantity="3" name="29" value="1">
<input type="submit" value="Submit" />
我有这种格式
[post] => Array
(
[28] => 1
[29] => 1
)
我真正想要的职位阵列是产品,然后对产品ID的列表数量...有没有一种简单的方法来改变形式
所以在下一页我可以做到这一点
$products = $_POST['products']
foreach($products as $p)
{
if(isset($p) && $p<>'')
{
///// place your code here
}
}