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

If my email field is not a required field I still get an error message when the user leaves the email field empty. The valid_email rule should not return an error in this case. If it is required then the rule would be required|valid_email. valid_email is impossible to use if it is not required. I had to make my own. I think CI3 works properly?
Simpler is always better

No, rules are independed and do not run based on the outcome of other rules.
An empty value is not a valid email. So it does do what it should do.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

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