<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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [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]

Reply via email to