Josh Close wrote:
Very simple question.....
When making multiple checkboxes, you put the name the same for a few
to group them together
<form action="process.php" method="post">
<input type="checkbox" name="checkBoxGroup" value="first" />
<input type="checkbox" name="checkBoxGruop" value="second" />
</form>
Use a naming convention as such, and they will be sent as an array....
<input type="checkbox" name="checkBoxGroup[]" value="first" />
<input type="checkbox" name="checkBoxGruop[]" value="second" />
(square brackets after the element name)
So they are grouped.... but then submitting them I only get the last
value check.
<? print_r($_POST); ?>
How would I get all the boxes check when "grouping" them by using the
same name for all checkboxes in the name field?
-Josh
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php