Form validation |
[eluser]sabya[/eluser]
I am using CodeIgniter CI_Form_validation. Problem 1: I have two input fields: "Password" and "Password Confirmation". The name of the input fields are: 'pass' and 'passconf' respectively. I am setting the rule for 'passconf' as: - Code: $this->form_validation->set_rules('passconf', The problem is when I am printing the error through: Code: echo validation_errors(); Code: The Password Confirmation field does not match the pass field. But I want the labels to be used instead of the HTML input names. So, basically the error SHOULD show up as: - Code: The Password Confirmation field does not match the Password field. That is: it should show 'Password' instead of 'pass'. I am attaching the test files: -
[eluser]xzela[/eluser]
check out this thread here: It's a known bug in the Form_Validation class http://ellislab.com/forums/viewthread/94977/ |
Welcome Guest, Not a member yet? Register Sign In |