When using the code:
Code:
echo form_checkbox('newsletter', 'accept')
...the name assigned to the <input> element will be:
Code:
<input type="checkbox" name="newsletter" value="accept" checked="checked" />
When using multiple checkboxes for similar items i.e. a To-Do list, the above causes the POST array to only contain the latest entry of the <input> element with the same name.
To get this to work, it needs to generate the following code (note the brackets):
Code:
<input type="checkbox" name="newsletter[]" value="accept" checked="checked" />
Is this currently possible in CodeIgniter?