|
There was an error on your form, your email is incorrect, please enter a valid email as indicated by the *";
$pass="false";
$error4 = "*";
$style9 = "error";}
if ($fname == ""){
$msg=" There was an error on your form, indicated by the *";
$error1 = "*";
$pass="false";
$style1 = "error";}
if($snopt == true){
if ($sname == ""){
$msg=" There was an error on your form, indicated by the *";
$error5 = "*";
$pass="false";
$style2 = "error";}}
if($htopt == true){
if ($telh == ""){
$msg=" There was an error on your form, indicated by the *";
$error6 = "*";
$pass="false";
$style4 = "error";}}
if ($sendemail == ""){
$msg=" There was an error on your form, indicated by the *";
$pass="false";
$error2 = "*";
$style9 = "error";}
if ($com == ""){
$msg=" There was an error on your form, indicated by the *";
$pass="false";
$error3 = "*";
$style8 = "error";}
echo $msg;
if (!$pass) {
if (!isset($email))
echo "Error, Please re-send $fname" ;
$todayis = date("l, F j, Y, g:i a") ;
$message ="$todayis [EST] \n";
$message .="From: $fname $sname ($sendemail)\n";
if($htopt == true){$message .="Home Tel : $telh \n";}
if($wtopt == true){$message .="Work Tel : $telw \n";}
if($mtopt == true){$message .="Mobile Tel : $telm \n";}
if($ftopt == true){$message .="Fax Tel : $telf \n";}
if($adopt == true){$message .="Address : $add \n";}
$message .="Comment: $com \n";
$from = "From: $email\r\n";
if ($email != "")
mail($email, $subject, $message, $from);
?>
|