Welcome Guest, Not a member yet? Register   Sign In
set_radio and set_checkbox have problems with value of 0
#15

[eluser]kiranugur[/eluser]
[quote author="Dr Crypto" date="1259157052"]
For checkboxes that didn't require validation, I just set the rule to something inconsequential like (trim).

Hopefully this will save others the time that I lost.[/quote]

There is no need to set the rule to "trim" or smt else. Just leave it blank.

Code:
$this->form_validation->set_rules('category', 'Category', '');

This works fine for me.


Messages In This Thread
set_radio and set_checkbox have problems with value of 0 - by El Forum - 12-15-2010, 07:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB