";
}
else
{
if(empty($_POST['name']))
{
$error_messages.= "You must enter your name!
";
}
}
if(($_POST['email'] == "Your Email Address:"))
{
$error_messages.= "You must enter a valid email address!
";
}
else
{
if(empty($_POST['email']))
{
$error_messages.= "You must enter a valid email address!
";
}
}
if(($_POST['phone'] == "Your Phone Number:"))
{
$error_messages.= "You must enter your phone number!
";
}
else
{
if(empty($_POST['phone']))
{
$error_messages.= "You must enter your phone number!
";
}
}
if(($_POST['query'] == "Your Query: "))
{
$error_messages.= "There was no query entered!";
}
else
{
if(empty($_POST['query']))
{
$error_messages.= "There was no query entered!
";
}
}
if(empty($error_messages))
{
//echo "in 1";
$odo = ($_POST['own_door'] == 1) ? "Yes" : "";
$so = ($_POST['serviced'] == 1) ? "Yes" : "";
$oth = ($_POST['warehousing'] == 1) ? "Yes" : "";
$emailto = "info@bracetownbusinesspark.com";
$subject = "Feedback from BBP Website!";
$message = "Name: " . trim(addslashes($_POST['name'])) . "\n";
$message.= "Email: " . trim(addslashes($_POST['email'])) . "\n";
$message.= "Phone: " . trim(addslashes($_POST['phone'])) . "\n\n";
$message.= "Areas of Interest\n";
$message.= "Own Door Offices: " . $odo . "\n";
$message.= "Serviced Offices: " . $so . "\n";
$message.= "Other (i.e. Storage): " . $oth . "\n";
$message.= addslashes($_POST['query']) . "\n";
$headers = "From: website@bracetownbusinesspark.com\r\nReply-To: " . trim($_POST['email']) . "\r\n";
if (mail($emailto, $subject, $message, $headers))
{
//echo "in 2";
//unset($_POST);
$form_sent = 1;
}
else
{
//echo "in 3";
$error_messages = "Message Failed
Please email reception@bracetownbusinesspark.com for assitance!";
}
}
}
$_POST['name'] = (empty($_POST['name'])) ? "Your Name:" : $_POST['name'];
$_POST['email'] = (empty($_POST['email'])) ? "Your Email Address:" : $_POST['email'];
$_POST['phone'] = (empty($_POST['phone'])) ? "Your Phone Number:" : $_POST['phone'];
$_POST['query'] = (empty($_POST['query'])) ? "Your Query: " : $_POST['query'];
?>
Contact DetailsADDRESS:
Bracetown Business Park Phone:
|
Quick Contact" . $error_messages . ""; } ?>Please fill in any comments or suggestions you may have in the form below. You may also request a telephone call, prices or suggest other services we should offer. |