<input type=checkbox name=product[42]> Widget #42
<input type=checkbox name=product[13]> Doohicky #13
<?php
while (list($id) = each($product)){
echo "You asked for $id<BR>\n";
}
?>
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: "kaab kaoutar" <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Sunday, February 18, 2001 3:50 AM
Subject: [PHP] dynamic pages/sessions/checkboxes
> Hi!
> I'd like to do the following:
> i have a page where the user chooses from a combo of a products, a combo
of
> charactersitics, the date when he wants it and the quantity!
> he may not fill one of these inputs so the result will be the list of all
> products, or he may choose the product and not the characteristics etc so
i
> will check in my database and show them!
> but that page is dynamic cause i have to add checkboxes close to each
> product !The purpose of these checkboxes is that the user can add the
> products to its cart of estimates(devis), so as the final result will be
the
> estimate of the price of all products checked!
> The problem is that when the user checks a product, i should know wich
> product to add, i thought of giving the checkboxes, the product number !
> any ideas ?
>
> PS: i'm using sessions cause i have many pages from where he can add
> whatever he wants to its estimate cart
>
> Thanks
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]