"; } 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); } ?> Contact Us
Thank 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 California Driver Education Web Site. To contact us via email, use the form below and one of our representatives will contact you shortly.

Name :
Email Address :
Inquiry :
    security image
Security Code :