On Wed, May 17, 2006 6:59 pm, Andras Kende wrote:
> 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: [__]
apple : qty: <input name="quantity[apple]" /> price: <input
name="price[apple]" /><br />
orange : qty: <input name="quantity[orange]" /> price: <input
name="price[orange]" /><br />
> <Add Items to Cart>
>
> I could add multiple items with checkboxes but without selecting
> quantity
> and price..
>
if (isset($_POST['quantity'])){
var_dump($_POST['quantity']);
var_dump($_POST['price']);
}
> if (isset($_POST['itemschecked'])) {
> foreach($_POST['itemschecked'] as $itemschecked => $checkeditems ){
> AddItem($checkeditems, 1);
> }
>
> Any help is appreciated..
>
> Thanks,
>
> Andras
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php