Re: multiple checkboxes
| From: | John Nichel | Date: | Tue, 03 Aug 2004 13:27:06 +0000 |
| Subject: | Re: multiple checkboxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192538@lists.php.net to get a copy of this message | ||
Robert Sossomon wrote:
You need to do: <input type=checkbox name="checkBoxGroup1" value="first"/> <input type=checkbox name="checkBoxGroup2" value="second"/> Keeping the name the same makes them a RADIO button and you will only get the last one.This is not true. The only thing that will make these a radio button is setting the 'type' to 'radio'. The answers put out to this yesterday were correct. Using square brackets ( [] ) after the name of the checkbox element will send them as an array (if any are checked). -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com