";
}
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 = "Colorado Driver Education ** Website Inquiry **";
$message = "
Details:
\n". "Name : $name
\n". "Email : $email
\n". "IP : $ip
\n". "Comments : $info
"; mail($to, $subject, $message, $headers); } ?>| include ("menu.html"); ?> | ||
Contact the Colorado Driver Education StaffThank you, your email has been sent and we will contact you shortly.'; } else if($_POST[submit]){ echo '' . $err . ' '; } ?>Thank you for your interest in the Colorado Driver Education Web Site. For questions about or to enroll in our Colorado state approved Driver Education course, contact us toll free at: To contact us via email, use the form below and one of our representatives will contact you shortly. |
|
|
|
|
||