30) { $errors=500; } // Remove if this guy's email address found if ((strpos($from, "mail.com") === false)) {} else { $errors = 500; } // Send mail if not spam if($errors == 0){ if(strlen($_POST["enquiry"])<8) { $error[0] = "ERROR: Message length too short."; } if(trim($_POST["name"])=="") { $error[1] = "ERROR: Missing Information."; } if (!ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $_POST["email"])) { $error[2] = "ERROR: Please supply a valid email address."; } if(count($error)==0) { $message = "Enquiry from Mechetrade Website form\r\n"; $message .= "============================\r\n\r\n"; $message .= "name :" . $_POST["name"] . "\r\n"; $message .= "Company :" . $_POST["company"] . "\r\n"; $message .= "Phone :" . $_POST["phone"] . "\r\n"; $message .= "Email :" . $_POST["email"] . "\r\n"; $message .= "Enquiry :" . $_POST["enquiry"] . "\r\n"; $subject .= "Enquiry from Mechetrade Website by: " . $_POST["company"]; mail("michael@galaxygraphics.co.uk",$subject,$message,"From:$from"); mail("aysun.ozcan@gmail.com",$subject,$message,"From:$from"); header("location:thanks.php"); } // end if if($errors >0){ header("location: {$redirect}"); } } // end if count error = 0 "if } // end main ==1 if ?> Mechetrade
Mechetrade

Mechetrade. İletişim

Please use this form to get in touch by email, or call +90 533 22732 74

Name : $error[1]"?>
Company :
Email address : ".$error[2].""?>
Phone number :
Message/Enquiry : $error[0]"?>
 
2015 © Ortadogu KImya Ticaret - Aysun Ozcan