form_validation 'matches' issue |
[eluser]Unknown[/eluser]
Hi all ! I have this form Code: <?=form_label('Email :', 'email')?> and this validation rules Code: array( The password field is not required, but i put the rule that 'confirm_password' must match the 'password' field. Alas, if i write something in password, the password rule catches the strings length less than 5 etc. but then if i leave blank the confirm password field the rule doesn't catch the match.. for example i could get something like this Code: array I miss something or is a bug ? Thanks
[eluser]taig[/eluser]
I just ran into the same issue. But at the moment I'm far too lazy to check out the library-file and eventually fix it. I'll try to solve it with a custom callback-function. Just wanted to bring the thread back to top in case someone already solved the issue.. Code: /**
[eluser]osci[/eluser]
The password field is not required, so it passes when empty. Why should it say greater than 4? You wouldn't be able to leave it null, thus it would be required. You want min[5], put required! |
Welcome Guest, Not a member yet? Register Sign In |