Re: Capturing several checkbox values
| From: | Dimitris Kossikidis | Date: | Tue, 25 Sep 2001 09:57:46 +0000 |
| Subject: | Re: Capturing several checkbox values | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68674@lists.php.net to get a copy of this message | ||
<input type="checkbox" name="mycheck[]" value="value1">
<input type="checkbox" name="mycheck[]" value="value2">
<input type="checkbox" name="mycheck[]" value="value3">
Now you get an array called mycheck.
Manipulate this array in php. Remeber that only checked items are set in
array.
That means if 2 checkboxes are checked you 'll get an array with 2
positions.
Suppose that 1st and 3rd checkboxes are checked.
----- Original Message -----
From: "John Day" <John.Day@hypnosismedia.com>
To: <php-general@lists.php.net>
Sent: Tuesday, September 25, 2001 12:30 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