"; include "includes/menu.php"; echo "
Airport Parking > Contact

"; if(!empty($_POST["send"])) { # what we do - is we simply check all posted values. if(is_array($_POST)) { foreach($_POST as $f=>$v) { $_POST[$f] = _local_replace_bad($v); } } if(is_array($HTTP_POST_VARS)) $HTTP_POST_VARS=$_POST; if(is_array($_GET)) { foreach($_GET as $f=>$v) { $_GET[$f] = _local_replace_bad($v); } } if(is_array($HTTP_GET_VARS)) $HTTP_GET_VARS=$_GET; if(is_array($_REQUEST)) { foreach($_REQUEST as $f=>$v) { $_REQUEST[$f] = _local_replace_bad($v); } } # if register_globals is set to "on", then we should overwrite them once again. if (ini_get("register_globals") == 1) extract($_POST, EXTR_OVERWRITE); //check email address $email=$_POST["EmailText"]; list($userName, $mailDomain) = split("@", $email); if (checkdnsrr($mailDomain, "MX")) { // this is a valid email domain! } else { $error = "ERROR - No Mail Records exist for this domain"; } if ($email=="") $error = "ERROR - Please enter your email address"; if ((!$email) || ($email=="") || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,6}$",$email))) { $error = "ERROR - Invalid email format."; $email=""; } if (strrpos($email,' ') > 0) $error = "ERROR - There are spaces in your email address."; if(!$error) { $daterec = time(); $nameemail = "".$_POST["NameText"]." <".$_POST["EmailText"].">"; $result1=$db->sql_query("INSERT INTO ".$prefix."_support_index (suppref, startdate, custemail,status) VALUES ('','$daterec','".forsql($nameemail)."','NEW');"); $suppref = $db->sql_nextid(); $result2=$db->sql_query("INSERT INTO ".$prefix."_support_messages (suppref, date, subject,message,direction, admin) VALUES ('$suppref','$daterec','".forsql($_POST["SubjectText"])."','".forsql($_POST["QueryText"])."','IN','');"); //pull and send autoresponse email $result = $db->sql_query("SELECT template FROM ".$prefix."_admin_emails WHERE eid=7"); $row = $db->sql_fetchrow($result); $content = $row["template"]; $content = str_replace("??reference??",$suppref,$content); $zto = $_POST["EmailText"]; $zsubject = "[airparking.net #".$suppref."] ".$_POST["SubjectText"].""; $zmessage = $content; $zheaders = 'From: Airport Parking ' . "\r\n" . 'Reply-To: help@airparking.net' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($zto, $zsubject, $zmessage, $zheaders); $error = "

Your message has been sent, someone will respond shortly

"; } } echo "


Please enter your comments and questions and then click send.
We endeavour to respond within 1 working day.

STOP: If your message/question is regarding a product please post it here: Product Forum
$error
Name :
Email :
Subject :




Message :





"; echo ""; include "footer.php"; ?>