At 20:14 21.11.2002, Xin Qi said:
>if i have a group of checkboxes, and they have the SAME name, when they are
>submited into a php script, how can this php file get the value of each
>since they have the same name, $_GET["checkbox_name"] only returns the last

If you name your checkboxes "checkbox_name[]" (note the brackets behind the
name) PHP will recognize the parameters being an array so you will have all
(checked) values at your disposal.

For checkboxes this means that _unchecked_ options are NOT transmitted.
Might be a caveat depending on your implementation.

   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to