Form Validation: return calues for rules? |
[eluser]mindph[/eluser]
Hi Is it possible somehow, to have the form validator return which rule was failing validation? The purpose why I could need this is simply: I dont want to display only the errors, but also hilight the field what failed validation. So that I could get something like Code: if($this->form_validation->rule('firstName') == FALSE){
[eluser]misplacedme[/eluser]
Check out the section labeled "Showing Errors Individually" in the form validation page. Code: <h5>Username</h5>
[eluser]mindph[/eluser]
BTW The userguide tells me only about these values to set in an array. Code: $data = array( Code: 'class' => 'classname' |
Welcome Guest, Not a member yet? Register Sign In |