Enquiry

Fill The Enquiry Form


"; echo $error."

"; echo "Please go back and fix these errors.

"; die(); } if(!isset($_POST['first_name']) || !isset($_POST['last_name']) || !isset($_POST['company_name']) || !isset($_POST['email']) || !isset($_POST['telephone']) || !isset($_POST['street_address']) || !isset($_POST['street_address2']) || !isset($_POST['town_city']) || !isset($_POST['state']) || !isset($_POST['zip']) || !isset($_POST['country']) || !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $first_name = $_POST['first_name']; // required $last_name = $_POST['last_name']; // required $company_name = $_POST['company_name']; // required $email_from = $_POST['email']; // required $telephone = $_POST['telephone']; // not required $street_address = $_POST['street_address']; // required $street_address2 = $_POST['street_address2']; // required $town_city = $_POST['town_city']; // required $state = $_POST['state']; // required $state = $_POST['zip']; // required $country = $_POST['country']; // required $comments = $_POST['comments']; // required $error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; if(!preg_match($email_exp,$email_from)) { $error_message .= '

The Email Address you entered does not appear to be valid.


'; } $string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$first_name)) { $error_message .= '

The First Name you entered does not appear to be valid.


'; } if(!preg_match($string_exp,$last_name)) { $error_message .= '

The Last Name you entered does not appear to be valid.


'; } if(strlen($comments) < 2) { $error_message .= '

The Comments you entered do not appear to be valid.


'; } if(strlen($error_message) > 0) { died($error_message); } $email_message = "Customers Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .=""; $email_message .= "
"; $email_message .= "


"; $email_message .= ''; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= ""; $email_message .= "
First Name : ".clean_string($first_name)."
Last Name : ".clean_string($last_name)."
Company Name : ".clean_string($company_name)."
Email : ".clean_string($email_from)."
Contact Number : ".clean_string($telephone)."
Street Address : ".clean_string($street_address)."
Street Address2 : ".clean_string($street_address2)."
Town / City : ".clean_string($town_city)."
State : ".clean_string($state)."
Zip : ".clean_string($zip)."
Country : ".clean_string($country)."
Message : ".clean_string($comments)."
"; $email_message .= "



"; $email_message .= "

www.uniquesteel.net

"; $email_message .= "



"; $email_message .=""; $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $headers .= "Content-Type: text/css; charset=ISO-8859-1\r\n"; @mail($email_to, $email_subject, $email_message, $headers); ?>

Thank you for contacting us. We will be in touch with you very soon.