Fw: [PHP] Capturing several checkbox values
| From: | sagar N Chand | Date: | Tue, 25 Sep 2001 13:23:26 +0000 |
| Subject: | Fw: [PHP] Capturing several checkbox values | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-68698@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: sagar N Chand
To: John Day
Sent: Tuesday, September 25, 2001 6:46 PM
Subject: Re: [PHP] Capturing several checkbox values
give each checkbox an individual name before you submit it.
In the next page put this code :
while(list($key,$value)=each($HTTP_POST_VARS)) {
echo ($key); // if you want to print the name of the check box
echo($value); // if you want to print the values of the check box
}
make sure that u use post method while submitting the form.
/sagar
----- Original Message -----
From: John Day
To: php-general@lists.php.net
Sent: Tuesday, September 25, 2001 3:00 PM
Subject: [PHP] Capturing several checkbox values
Hi,
I have a page containing about 50 different checkboxes, the user can
select as few or many as they like. When they submit the form I want the
values/names of the checkboxes that they selected to be displayed on the
next page, i.e. a thankyou page. Any help is much appreciated.
JD
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net