i have an optional checkbox called checkall
<input name="checkall" type="checkbox" value="ON" <?php echo set_checkbox('checkall', 'ON'); ?> />
i’m sure that the form is submitting that
if i give it a validation rule $this->form_validation->set_rules('checkall', 'Checkall', 'required');it works, but without a rule nothing worked out !
did i miss something? i think form helper doesn’t require that for this function to work right ?
I think you’re talking about the value being persisted without validation rules. This is STILL a problem in CI 2.x if I recall correctly, and jbreitwiser’s patch from January 2010 is still necessary:
http://codeigniter.com/forums/viewthread/96617/P15/#689642
If this is still a problem in CI 2.x it is completely absurd, and I totally agree. But that patch will solve your problem.