Contact Us
if(isset($_POST["Submit"])){
if($_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
if($_POST["message"]=="") die("You didn't have anything to say?");
$subject = "Web Contact Form";
$to = "cpearson@abcleads.com";
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From:".$_POST["name"]." <".$_POST["email"].">\n";
$headers .= "X-Sender:
\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "Return-Path: \n"; // Return path for errors
$headers .= "Cc: \n";
$headers .= "Bcc: jim@abcleads.com\n";
$message = "Name: ".$_POST["name"]."
Email: ".$_POST["email"]."
Website: ".$_POST["website"]."
From: ".$_SERVER["HTTP_HOST"]."
Message: ".nl2br($_POST["message"]);
mail($to, $subject, $message, $headers);
echo("Thanks for contacting us. We'll get back to you shortly.
");
} else {
echo("You did not fill out the security code correctly. Hit back and try again.
");
}
} else {
?>
}
}
?>