if ($_SERVER['REQUEST_METHOD'] == "POST") {
$name = substr($_POST["name"], 0, 50);
$email = substr($_POST["email"], 0, 50);
$phone = substr($_POST["phone"], 0, 50);
$type = substr($_POST["type"], 0, 50);
$comments = substr($_POST["comments"], 0, 500);
/* recipients */
//$to = "josh@eleet-tech.com";
$to = "nick@iamsport.com";
/* subject */
$subject = "ExecuCopter Information Request - ".date("F j, Y, g:i a");;
$message = "Name: $name\n";
$message .= "Email Address: $email\n";
$message .= "Phone Number: $phone\n";
$message .= "Type: $type\n";
$message .= "Comments: $comments\n";
mail($to, $subject, $message, "From: ".$email);
$message = "Thank you for your request. A representative will contact you shortly.";
}
?>
:: ExecuCopter ::
|
|
|
|
|
|
|
|
|
©
Copyright 2006 ExecuCopter. All Rights Reserved.
Photos courtesy of Bell Helicopter a Textron Company. |
|
|