Contact us Today
/// Exploit check
if(($_POST) && ($_SERVER['HTTP_REFERER']!="http://80.84.53.26/~glasstechove/contact.php") && ($_SERVER['HTTP_REFERER']!="http://www.glasstechove.co.uk/contact.php")){
echo $_SERVER['HTTP_REFERER']."
"; echo $_SERVER['PHP_SELF']."
"; echo"Invalid Entry Point"; exit; } /// if($_POST){ $required_fields=array("firstname","surname","email","message","submit"); $errors=$required_fields; while(list($key, $val) = each ($required_fields)) { $array_key = array_search($val, $errors); if($_POST[$val]!=""){ unset($errors[$array_key]); } } if(!$errors){ /// Process $body="Firstname: ".$_POST['firstname']."\n"; $body.="Surname: ".$_POST['surname']."\n"; $body.="Tel: ".$_POST['telephone']."\n"; $body.="Email: ".$_POST['email']."\n"; $body.="Browser: ".$_SERVER['HTTP_USER_AGENT']."\n"; $body.="IP Address: ".$_SERVER['REMOTE_ADDR']."\n\n"; $body.="Message:\n\n".$_POST['message']."\n\n"; require("mailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = "info@glasstechove.co.uk"; $mail->FromName = "Glasstec Hove (on behalf of ".$_POST['firstname']." ".$_POST['surname'].")"; $mail->Sender = "info@glasstechove.co.uk"; $mail->AddReplyTo($_POST['email']); $mail->Subject = "Enquiry from website"; $mail->Hostname ="glasstechove.co.uk"; $mail->Body = $body; $mail->ClearAddresses(); $mail->AddAddress("info@glasstechove.co.uk"); if(!$mail->Send()) { echo "There was an error sending mail; ".$mail->ErrorInfo; } // Clear all addresses and attachments for next loop $mail->ClearAddresses(); $submitted=1; } } if($submitted){ ?>
"; echo $_SERVER['PHP_SELF']."
"; echo"Invalid Entry Point"; exit; } /// if($_POST){ $required_fields=array("firstname","surname","email","message","submit"); $errors=$required_fields; while(list($key, $val) = each ($required_fields)) { $array_key = array_search($val, $errors); if($_POST[$val]!=""){ unset($errors[$array_key]); } } if(!$errors){ /// Process $body="Firstname: ".$_POST['firstname']."\n"; $body.="Surname: ".$_POST['surname']."\n"; $body.="Tel: ".$_POST['telephone']."\n"; $body.="Email: ".$_POST['email']."\n"; $body.="Browser: ".$_SERVER['HTTP_USER_AGENT']."\n"; $body.="IP Address: ".$_SERVER['REMOTE_ADDR']."\n\n"; $body.="Message:\n\n".$_POST['message']."\n\n"; require("mailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = "info@glasstechove.co.uk"; $mail->FromName = "Glasstec Hove (on behalf of ".$_POST['firstname']." ".$_POST['surname'].")"; $mail->Sender = "info@glasstechove.co.uk"; $mail->AddReplyTo($_POST['email']); $mail->Subject = "Enquiry from website"; $mail->Hostname ="glasstechove.co.uk"; $mail->Body = $body; $mail->ClearAddresses(); $mail->AddAddress("info@glasstechove.co.uk"); if(!$mail->Send()) { echo "There was an error sending mail; ".$mail->ErrorInfo; } // Clear all addresses and attachments for next loop $mail->ClearAddresses(); $submitted=1; } } if($submitted){ ?>
Thank you for you interest in MB Prperty Maintenace.
We have received your enquiry and it will be dealt with as soon as possible.
} else{ ?>Please spare a few moments to fill in a few of the details below and we will reply to your enquiry as soon as we can.
if($errors){ echo"\n";
echo"
";
}
?>
Please ensure the following fields are completed
"; echo"- \n";
while(list($key, $val) = each ($errors))
{
echo"
- ".ucwords($val)." "; } echo"
* Indicates a required field
} ?>Privacy policy
Please note that your details will not be passed on to any third parties and will only be used by MB Prperty Maintenance to contact you with regards to your particular enquiry.