<input style="width: 13px;" name="rules" id="User_agreement" value="1" type="checkbox"> <?=form_error('rules')?>
<?$this->form_validation->set_rules('rules', 'Согласие с правилами', 'required|callback__rules_accept'); function _rules_accept($check){ if($this->input->post('rules') && $this->input->post('rules') == 1) { return true; } $this->form_validation->set_message('_email_unic', 'Необходимо подтвердить ваше согласие с правилами использования'); return false; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)