Welcome Guest, Not a member yet? Register   Sign In
Form validation
#1

[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',
                'Password Confirmation',
                'matches[pass]');

The problem is when I am printing the error through:
Code:
echo validation_errors();
the error is displayed as: -

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: -
#2

[eluser]xzela[/eluser]
check out this thread here:
It's a known bug in the Form_Validation class

http://ellislab.com/forums/viewthread/94977/




Theme © iAndrew 2016 - Forum software by © MyBB