I added some parameters to fit best with my site, but when i click to submit, i always have error with checkbox not checked (i want that ALL my checkbox must be checked to send the email) and also the first parameter "owner_name" always give me error " You forgot to enter your Video Owner Name."My php code (situated in another php file): Hello Szabolcs, From the error you have shown us, in the file secure_email_you have stated a variable called $email2 and it has not been previously defined.Please remember that PHP works top down so you have to declare variables above where you use them.

validating email php-39

Thank you, John-Paul Hello Gero, That happens because the 'submitted' state is still in effect.

When the page is initially created, the state is not 'submitted'.

I would place the code immediately after the body tag.

This article will be flagged for further review for update purposes.

It would have to be reviewed and re-written at this point.

The instructions in the code above indicate that the error reporting code belongs in the body of your website.

Best Regards, TJ Edens I advise checking your SMTP settings to make sure everything is configured properly.

Likewise, you can follow your mail logs for specific errors.

PHP is a great scripting language that allows many dynamic functions in your site.

You can create custom contact forms, form validation, and email responses using PHP.

This can be customized for different form field validations. You can paste the entire code directly in the body section of your webpage to get it working.