";
}
}
// check for valid email address
if (!isValidEmail($_SESSION['email'])) {
$_SESSION['errors'] .= " Invalid email address - please reenter
";
}
// check the invisible robot discovery field
if (!$_SESSION['bfield'] === "")
{
// create an entry in the search log file
$Line = date('m/d/y H:i:s') . ' ' . $ME . ' bfield = ' . $_SESSION['bfield'];
$logfile = "../../logs/bots.txt";
$fp = fopen($logfile, "a");
fwrite($fp, $Line . "\r\n");
fclose($fp);
// get out now
exit;
}
// check if bot put an email address in the regnum field
if (!strstr($_SESSION['regnum'], "@") === FALSE)
{
// create an entry in the search log file
$Line = date('m/d/y H:i:s') . ' ' . $ME . ' regnum = ' . $_SESSION['regnum'];
$logfile = "../../logs/bots.txt";
$fp = fopen($logfile, "a");
fwrite($fp, $Line . "\r\n");
fclose($fp);
// get out now
exit;
}
// if all fields OK
if ($_SESSION['errors'] == "")
{
// start the page to email the form
$_SESSION['date'] = date('m/d/y H:i:s');
header("Location: techsupportfinish.php");
exit;
}
}
else
{
$_SESSION['errors'] = "";
$_SESSION['bfield'] = "";
}
?>
|