Validate email if its typed in? |
Hi,
I have a form, where the email is not required, but when someone types it in I would like to validate it. So i tried the following approach, but than I get the error, that its not a valid email, if I do not type an email in the form. Does someone have an Idea? Thanks Code: <?php
I think you'll need to include the permit_empty rule.
See https://codeigniter.com/user_guide/libra...able-rules |
Welcome Guest, Not a member yet? Register Sign In |