$email = $_REQUEST['email'] ; $comments = $_REQUEST['comments'] ; $name = $_REQUEST['name'] ; $phone = $_REQUEST['phone'] ; if (!isset($_REQUEST['email'])) { header( "Location: http://www.hornsbysteel.net" ); } elseif (empty($email) || empty($phone)) { ?>
Oops, it appears you forgot to enter either your email address or your name. Please press the BACK button in your browser and try again.
} else { mail( "sales@hornsbysteel.net", "Online Form Results", "Online Form: Name: $name Phone: $phone Comments: $comments\n", "From: $name <$email>" ); header( "Location: http://www.hornsbysteel.net/thankyou.php" ); } ?>![]() |
|||||
|
|||||