CodeIgniter Forums

Full Version: Isset Form Validation rules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
In Codeigniter 3.0.0
I think in file system\libraries\Form_validation.php line 637, the line should be:
Code:
$type = in_array('isset', $rules) ? 'isset' : 'required';
instead of
Code:
$type = in_array('required', $rules) ? 'required' : 'isset';
so, if we want to check whether checkbox is checked or not, we set the rule: 'required|isset'