From: "Robert Sossomon" <[EMAIL PROTECTED]> > 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 a valid solution, but it's really just easier to make them into an array like many others have suggested. Using this method, you would need to loop through all of the possible "checkBoxGroupX" values to see which ones were checked or get a list or count of them. Making them into an array makes it as simple as count($_POST['checkBoxGroup']) or implode(',',$_POST['checkBoxGroup']), etc... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php