[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: -