";
}
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))
{
$emailto = "info@the-hub-logistics-park.ie";
$subject = "Feedback from The Hub Website!";
$message = "Name: " . trim(addslashes($_POST['name'])) . "\n";
$message.= "Email: " . trim(addslashes($_POST['email'])) . "\n";
$message.= "Phone: " . trim(addslashes($_POST['phone'])) . "\n";
$message.= addslashes($_POST['query']) . "\n";
$headers = "From: website@the-hub-logistics-park.ie\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 info@the-hub-logistics-park.ie 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:
The HUB Logistics 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. |
Privacy Policy
© Copyright The HUB Logistics Park. All Rights Reserved.