


Address
8 Laidlaw Drive
Delacombe Vic 3356
5336 2555
5336 1488
8 Laidlaw Drive
Delacombe Vic 3356
$p){
if (preg_match($match, $p)) {
die("Form exploit detected.");
}
$_POST[$key] = strip_tags($p);
}
// The FIRSTNAME field is NOT a mistake! if this form is filled, this must be a bot as the
// tr is hidden
if($_POST['FIRSTNAME'] != "")
die("Form exploit detected.");
$submit = strip_tags($_POST['submit']);
if($submit){
$fname = addslashes(strip_tags($_POST['fname']));
$email = addslashes(strip_tags($_POST['email']));
$phone = addslashes(strip_tags($_POST['phone']));
$enquiry = addslashes(strip_tags($_POST['enquiry']));
$message = "Name: " . $fname . "n";
$message .= "Email: " . $email . "n";
$message .= "Phone: " . $phone . "n";
$message .= "Enquiry: " . $enquiry . "n";
$error .= $fname == "" ? "Please enter your first name.
" : ""; $error .= $email == "" ? "Please enter your email address.
" : ""; if(!$error){ $mailSent = mail ($sendTo, $subject, $message, "From: $email"); } } if($mailSent){ ?> Your email has been sent successfully. The following errors occurred:
" . $error . "
"); } ?>
" : ""; $error .= $email == "" ? "Please enter your email address.
" : ""; if(!$error){ $mailSent = mail ($sendTo, $subject, $message, "From: $email"); } } if($mailSent){ ?> Your email has been sent successfully. The following errors occurred:
" . $error . "
"); } ?>
