";
// If any of the required fields are empty, update the error variables
if ((empty($_POST['name'])) OR (empty($_POST['email'])) OR (empty($_POST['message']))) {
$error = TRUE;
$error_message .= "
All fields marked with a * must be completed.
";
}
// If the email address entered is not valid, update the error variables
if (!ereg("^[^@]{1,64}@[^@]{1,255}$", $_POST['email'])) {
$error = TRUE;
$error_message .= "
The email address entered is not valid.
";
}
// If the security code is not valid, update the error variables
switch ($_POST['form_security_id']) {
case 1:
if ($_POST['form_security'] != "2784") {
$error = TRUE;
$error_message .= "
The security code entered was not valid.
";
}
break;
case 2:
if ($_POST['form_security'] != "6610") {
$error = TRUE;
$error_message .= "
The security code entered was not valid.
";
}
break;
case 3:
if ($_POST['form_security'] != "9827") {
$error = TRUE;
$error_message .= "
The security code entered was not valid.
";
}
break;
case 4:
if ($_POST['form_security'] != "4282") {
$error = TRUE;
$error_message .= "
The security code entered was not valid.
";
}
break;
case 5:
if ($_POST['form_security'] != "8829") {
$error = TRUE;
$error_message .= "
The security code entered was not valid.
";
}
break;
case 6:
if ($_POST['form_security'] != "7361") {
$error = TRUE;
$error_message .= "