Mar 7th, 2010, 11:24 AM
Hi kmw,
Ah, this is one of those things that trips everyone up at some point.
In your form, add "[]" after the name attribute for the checkboxes, like so:
PHP needs that to know that the checkbox is part of a group, and store all values.
- Ben
Ah, this is one of those things that trips everyone up at some point.

In your form, add "[]" after the name attribute for the checkboxes, like so:
Code:
<input type="checkbox" name="myfield[]" value="one" /> One
<input type="checkbox" name="myfield[]" value="two" /> Two
PHP needs that to know that the checkbox is part of a group, and store all values.
- Ben