Attention! You must enter your name.
';
} else if(trim($email) == '') {
$error = 'Attention! Please enter a valid email address.
';
// Configuration option.
// Remove the // tags below to active phone number.
//} else if(!is_numeric($phone)) {
// $error = 'Attention! Phone number can only contain digits.
';
} else if(!isEmail($email)) {
$error = 'Attention! You have enter an invalid e-mail address, try again.
';
}
if(trim($subject) == '') {
$error = 'Attention! Please enter a subject.
';
} else if(trim($comments) == '') {
$error = 'Attention! Please enter your message.
';
} else if(trim($verify) == '') {
$error = 'Attention! Please enter the verification number.
';
} else if(trim($verify) != 'blue') {
$error = 'Attention! The verification answer you entered is incorrect.
';
}
if($error == '') {
if(get_magic_quotes_gpc()) {
$comments = stripslashes($comments);
}
// Configuration option.
// Enter the email address that you want to emails to be sent to.
// Example $address = "";
echo "
Email Sent Successfully.
";
echo "
Thank you $name, your message has been submitted to us.
";
echo "
";
}
}
if(!isset($_POST['contactus']) || $error != '') // Do not edit.
{
?>