WEBSITE CONTACT FORM ENQUIRY

We have received the following enquiry from the website at '.date('jS F Y H:ia').'

Contact Name: '.$name.'

Email Address: '.$email.'

Telephone Number: '.$telephone.'

Company: '.$company.'

 

Message: '.$message.'

IP Address: '.$ipaddress.'

'; #mail($your_email, "Contact from Website", $custMsg,$headers); mail($your_email, "Contact from Website", $custMsg,$headers); $_SESSION['responsemsg'] = 'Thank you for contacting Castle Estates.'; $_SESSION['success']=1; #unset($_POST); } else { $_SESSION['responsemsg'] = 'Please make sure that you have filled out all the required fields\n'.$nameErr; $_SESSION['success']=0; } } header('location:'.PAGE_ROOT.'contact'); } */ if(isset($_REQUEST['page'])) { $page = filter_var($_REQUEST['page'],FILTER_SANITIZE_STRING); $sGetURL = "SELECT * FROM `".DB_TABLE."page` WHERE `pageurl`='".$page."' AND `status`=1"; } else { $sGetURL = "SELECT * FROM `".DB_TABLE."page` WHERE `pageurl`='home' AND `status`=1"; $strPage = 'home'; } if(!$resGetURL = $dblink->query($sGetURL)){die('There was an error running the query [' . $dblink->error . ']');} $rowGetURL = $resGetURL->fetch_assoc(); $metatitle = $rowGetURL['metaTitle']; $metadesc = $rowGetURL['metaDesc']; $metakey = $rowGetURL['metaKey']; $tpl=$rowGetURL['template']; function getUrl() { $url = @( $_SERVER["HTTPS"] != 'on' ) ? 'http://'.$_SERVER["SERVER_NAME"] : 'https://'.$_SERVER["SERVER_NAME"]; $url .= $_SERVER["REQUEST_URI"]; return $url; } ?>