Add Multiple Items, Qty to Cart from html form
| From: | Andras Kende | Date: | Wed, 17 May 2006 23:59:33 +0000 |
| Subject: | Add Multiple Items, Qty to Cart from html form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-236372@lists.php.net to get a copy of this message | ||
Hello,
I trying to add multiple items to a shopping cart with selectable quantity and price form text field like..
apple : qty: [__] price: [__]
orange : qty: [__] price: [__]
<Add Items to Cart>
I could add multiple items with checkboxes but without selecting quantity and price..
if (isset($_POST['itemschecked'])) {
foreach($_POST['itemschecked'] as $itemschecked => $checkeditems ){
AddItem($checkeditems, 1);
}
Any help is appreciated..
Thanks,
Andras