function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
}
}
$fName=$_POST['fName'];
//checkOK($fName);
$lName=$_POST['lName'];
//checkOK($lName);
$email=$_POST['email'];
//checkOK($email);
$phone=$_POST['phone'];
//checkOK($phone);
$address=$_POST['address'];
//checkOK($address);
$city=$_POST['city'];
//checkOK($city);
$state=$_POST['state'];
//checkOK($state);
$zip=$_POST['zip'];
//checkOK($zip);
$message=$_POST['message'];
//checkOK($message);
$to="teconomy@gmail.com";
$body="Name: $fName $lName\n\ne-mail: $email \n\nPhone Number: $phone\n\nAddress: $address $city, $state, $zip\n\nMessage:\n$message";
$fromemail=$email;
$headers = "From: ".$fromemail."\r\n";
$headers .= "Reply-To: ".$fromemail."\r\n";
$headers .= "Return-Path: ".$fromemail."\r\n";
$headers .= "Bcc: teconomy@gmail.com";
// $headers .= "Bcc: theodoreeconomy@gmail.com\r\n";
// $email="darrellcpackard@alrinc.com,daveruth@alrinc.com";
$emailTo="kevin@gonzoworkout.com";
mail($emailTo, 'Contact Gonzo Workout', $body, $headers) ;
?>