I have a contact form I used for a long time but now need to add a honeypot.
The form collects Name, email, phone, Street1, Street2, city, zip and comment.

The form has field validation. This is the validation code:

Code:
// validation
$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (Trim($Name)=="") $validationOK=false;
if (Trim($PostCode)=="") $validationOK=false;
if (!$validationOK) {
header('Location: error-message.html');
exit();
}
I have added another field, Street3, hidden by css.
I want to validate this field and,if it is filled, redirect to bademail@mydomain.com

I set a local variable $EmailBad = "bademail@mydomain.com"
Needless to say, I am PHP illiterate but this is what I think the code should be.

Code:
$validationOK=false;
if (Trim($Street3)=="") $validationOK=true;
if (!$validationOK) {
$success = mail($EmailBad, $Subject, $Body, "From: <$EmailFrom>");
else;

$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (Trim($Name)=="") $validationOK=false;
if (Trim($PostCode)=="") $validationOK=false;
if (!$validationOK) {
header('Location: error-message.html');
exit();
}
I am probably way off track so any help is appreciated.

thanks.

If anyone is wondering, I am setting the honeypot as a "legitimate" field and I have never had anyone fill out Street2, so it is very unlikely the will use Street3.
I want it to go to an email address so spam programs will assume their work is done, I can monitor the success and also check if real requests slipped through (screen readers etc.)