PHP contact form
PHP contact form
Out of context: Reply #5
- Started
- Last post
- 13 Responses
- section_0140
If the email is invalid, the $ret variable in the if statement that states whether or not the email was sent won't be defined, therefore it's invalid. You need to nest that if statement in the validation if statement.
If that makes sense.