Oct 31st, 2010, 5:27 PM
Heya,
Did you figure this one out? If not, change your markup to this:
PHP requires those square brackets at the end of the name attributes for checkboxes. They let the server know that there can be multiple values sent for that field.
Good luck!
Ben
Did you figure this one out? If not, change your markup to this:
Code:
<input value="red" type="checkbox" name="test[]" /> red
<input value="green" type="checkbox" name="test[]" /> green
<input value="blue" type="checkbox" name="test[]" /> blue
PHP requires those square brackets at the end of the name attributes for checkboxes. They let the server know that there can be multiple values sent for that field.
Good luck!
Ben