[eluser]mrmuggles[/eluser]
I've got a really simple checkbox like that :
<input type="checkbox" name="newsletter" value="true" <?php echo set_checkbox('newsletter', 'true', false); ?> />
The function "set_checkbox" won't keep the state unless I add this line in my controller :
$this->form_validation->set_rules('newsletter', 'Newsletter', '');
Is that normal? Is there a more "logical" way to make it work?
Thanks!