\r\n"; $headers .= "Reply-To: " . $_POST['email'] . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); if ($_POST['name'] == '') { array_push($errors, "You did not enter your name."); array_push($fields, "name"); } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_POST['email'])) { array_push($errors, "You did not provide us with a valid email."); array_push($fields, "email"); } if ($_POST['phone'] == "") { array_push($errors, "Please provide a valid telephone number"); array_push($fields, "phone"); } if (empty($_SESSION['code']) || strtoupper($_POST['code']) != $_SESSION['code']) { array_push($errors, "You did not enter the proper security code."); array_push($fields, "code"); } if (count($errors) == 0) { $ourcomments = " Name: " . $_POST['name'] . " Email: " . $_POST['email'] . " Phone: " . $_POST['phone'] . " Comments: " . $_POST['message']; // Send email mail("inquiry@petenzymes.com", "Email from petenzymes.com", stripslashes($ourcomments), $headers); header("Location: http://www.petenzymes.com/htmls/thankyou.html"); exit; } } ?>
|
|||||||||||||||||||||||||||||||||||||||
| © 2005-2008 Petenzymes.com, Ultra-Pet Products, Natural Wellness Centers of America Inc. | |||||||||||||||||||||||||||||||||||||||