include("session.php");
require_once("lib/Mailer.php");
require_once("lib/Utils.php");
$utils = new Utils();
if($_REQUEST["action"]=="send"){
if($_REQUEST["reset"]=="Reset"){
$customer_name = $customer_number = $first_name = $last_name = $email = "";
}else{
$_REQUEST = $utils->cleanUpVariables($_REQUEST);
$customer_number = $_REQUEST["customer_number"];
$customer_name = $_REQUEST["customer_name"];
$first_name = $_REQUEST["first_name"];
$last_name = $_REQUEST["last_name"];
$email = $_REQUEST["email"];
$captcha = $_REQUEST["captcha"];
$error_message = "";
if($customer_name == "" || $customer_number == "" || $first_name == "" || $last_name=="" || $email == "" ){
$error_message .= "Please fill out all required fields. ";
}
if(!$utils->isValidEmail($email) && $email != ""){
$error_message .= "Please enter a valid email address. ";
}
if($_SESSION['digit']!=$captcha){
$error_message .= "The security code you entered was incorrect. ";
}
if($error_message==""){
$mail = new Mailer();
$mail->sendProductsEmailSignUp($customer_number, $customer_name, $first_name, $last_name, $email);
$result = "
Your email has been sent successfully.
";
$customer_name = $customer_number = $first_name = $last_name = $email = "";
}else{
$result = "".$error_message."
";
}
}
}
?>
Watson Company - -
Email Sign-Up
Sign-Up for the Watson Company Email List
Get timely emails regarding new Products offered, Promotions, and upcoming Events. This service is available for Customers only. More than one employee per Customer can sign-up by submitting additional forms.