Welcome Guest, Not a member yet? Register   Sign In
Form Validation: return calues for rules?
#1

[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){
$formData['firstName'] = array('style' => 'background-color: red');
}
I am not sure if you get what I mean... oO


Messages In This Thread
Form Validation: return calues for rules? - by El Forum - 07-05-2011, 01:52 PM
Form Validation: return calues for rules? - by El Forum - 07-05-2011, 03:38 PM
Form Validation: return calues for rules? - by El Forum - 07-05-2011, 05:15 PM
Form Validation: return calues for rules? - by El Forum - 07-06-2011, 08:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB