• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI 1.7 - Form_Validation

#11
[eluser]Shrike67[/eluser]
I have some problems with the dmiden’s fix if I use the lang: syntax

Code:
$val->set_rules('password', 'lang:auth_password', 'trim|required|min_length['.$this->_min_password.']|max_length['.$this->_max_password.']|matches[confirm_password]');
$val->set_rules('confirm_password', 'lang:auth_confirm_password', 'trim|required');

I get:

Code:
The Password field does not match the lang:auth_confirm_password field.

#12
[eluser]justinm715[/eluser]
I have two elements on my form in a view

Code:
<div>
    <label for="email1">E-mail: </label>
    &lt;input type="text" name="email" id="email1" /&gt;
</div>
<div>
    <label for="confirmEmail1">Confirm E-mail: </label>
    &lt;input type="text" name="confirmEmail" id="confirmEmail1" /&gt;
</div>
<div>

I implemented the fixes mentioned above for line 666, but my form validation returns:

Quote:The E-mail field does not match the confirmEmail field.

Am I doing something incorrectly?

Edit: Shouldn't it say "does not match the Confirm E-Mail: field" ?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.