|
|
|
|
|
|
if(@$_POST["gonow"]){
@$name=$_POST["name"];
@$email=$_POST["email"];
@$phone=$_POST["phone"];
@$order=$_POST["order"];
if($name=="") $errors .= "PLease enter in your first and last name! ";
if(ereg("^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$",$email) ==false) $errors .= "Please enter in a valid email address! ";
//who the email is send to
$to="cullen@passoftware.com";
//$to="jonathan@passoftware.com";
//the the subject of the email
$subject="Order Form";
// message sent to the client
$msg="
Name: $name
Email: $email
Phone: $phone
Order:
-----------------
$order
-----------------
";
//sends the email if the form is valid
if($errors == ""){
//print "".$msg." ";
mail($to,$subject,$msg,"From:$email");
//where the page links to after form is submitted
header("Location: thank_you.htm");
exit();
}
}
?>
Contact
if($errors != ""){?>
=$errors;?>
}?>
|
|
|