At 20:14 21.11.2002, Xin Qi said: --------------------[snip]-------------------- >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 >checkbox? > >since they have the same name, $_GET["checkbox_name"] only returns the last >one. --------------------[snip]--------------------
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 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php