Contact:
Please fill in the form:
";
if($name=="" || $Phone=="" || $email=="" ){
$errors=1;
$error.="
You did not enter one or more of the required fields. Please go back and try again.";
}
if($errors==1) echo $error;
else{
$message="name: ".$name."
address: ".$address."
Phone: ".$Phone."
email: ".$email."
contactus: ".$contactus."
send info: ".$sendinfo."
where to purchase: ".$wheretopurchase."
";
mail("info@oldmacgregor.ca","Form Submitted at your website",$message,"From: phpFormGenerator");
header("Refresh: 0;url=http://www.oldmacgregor.com");
}
}else{
?>
}?>