' . $err . '
'; } ?>Thank you for your interest in the California Driver Education Web Site. To contact us via email, use the form below and one of our representatives will contact you shortly.
| Email Address | : | |
| Inquiry | : | |
| Security Code | : | |
$email_domain = 'californiadrivereducation.us';
$send_to = 'sales@californiadrivereducation.us';
// no need to edit below
session_start();
$name = trim(strip_tags($_REQUEST['fullname']));
$email = trim(strip_tags($_REQUEST['email']));
$info = trim(strip_tags($_REQUEST['message']));
$ip = trim(strip_tags(GetEnv('REMOTE_ADDR')));
$secure = strtoupper(trim(strip_tags($_POST['secure'])));
$match = $_SESSION['captcha']; // the code on the image
$success = FALSE;
// input error checking
if ($name=="") {
$err .= "Please provide your name
";
}
if (!$email) {
$err .= "Please provide your email address
";
}
if ($email) {
if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) {
$err .= $email. " is not a valid email address.
";
}
}
if ($info=="") {
$err .= "Please provide comments
";
}
if (!$secure) {
$err .= "No security code entered
";
}
if (($secure!=$match) && ($secure!="")) {
$err .= "Security code mismatch
";
}
if ($err=="") {
// success - input passed all tests
$success = TRUE;
}
if ($success) {
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: " . $email . "\r\n";
$to = $send_to;
$subject = "California Driver Education ** Website Inquiry **";
$message = "
Details:
\n". "Name : $name
\n". "Email : $email
\n". "IP : $ip
\n". "Comments : $info
"; mail($to, $subject, $message, $headers); } ?> include ("lastmod.php"); ?>' . $err . '
'; } ?>Thank you for your interest in the California Driver Education Web Site. To contact us via email, use the form below and one of our representatives will contact you shortly.
| Email Address | : | |
| Inquiry | : | |
| Security Code | : | |