You are here: Home > Contact Free parking available at our premises when you visit MBI, do call in and see us! Margaret Barrow Interiors Ltd
Trading as MBI
Our office address is:
MBI
Beezon Lodge
Beezon Road
Kendal
Cumbria LA9 6AL
Telephone: 01539 720100
Registered Office:
Ghyll Farm,
Bowston,
Burneside,
Kendal,
Cumbria LA8 9AB
Co. Number 5992800 (Registered in England)
VAT Reg No. 895 1021 24
"suspect",
'text' => "Your message contained HTML content that is not allowed. Please remove the content and try again.");
}else{// if ($suspect) //process $_POST only if no suspect content
$basic_fields=array("name", "email_address", "subject", "message");
//loop through basic fields just to check that something has been entered
foreach($basic_fields as $field)
{
if(!isset($_POST[$field]) || $_POST[$field]==""){
$errors[]=array( 'source' => $field,
'text' => 'Please enter a valid '.ereg_replace("_", " ", $field).'.');
}//end if(!isset($_POST[$field]) || $_POST[$field]=="")
}//end foreach($basic_fields as $field)
//check email address is valid
//also check that an email error hasn't already been added
if(!is_valid_email($_POST['email_address']) && isset($_POST['email_address']) && !$_POST['email_address']==""){
$errors[]=array( 'source' => 'email_address',
'text' => 'Please enter a valid email address.');
}//end if(!is_valid_email($_POST['email']) )
//check for links in the message
if (!empty($_POST['message'])) {
// regex to ensure no links in enquiryDetail
$checkLink = "/http|www/";
// reject the enquiry if it contains a link
if (preg_match($checkLink, $_POST['message'])) {
$errors[]=array( 'source' => "suspect",
'text' => 'Your message contained HTML content that is not allowed. Please remove the content and try again.');
}
}
}//end else{ if ($suspect)
//if there are no errors process the form
if($errors==null)
{
// build the message
$serverTime = date("h:i:s");
//putenv("TZ=Europe/London");
$ukTime = date("Hi");
$date = date('jS M Y');
$message = "The following details have been sent from the contact form on your website.\n-------------------------------------------------------------------------\n\n";
$message .= "Name: ".$_POST['name']."\n\n";
$message .= "Email: ".$_POST['email_address']."\n\n";
$message .= "Telephone Number: ".$_POST['telephone_no']."\n\n";
$message .= "Message Subject: ".$_POST['subject']."\n\n";
$message .= "Enquiry: ".$_POST['message']."\n\n";
$message .= "-------------------------------------------------------------------------\n";
$message .= "Message sent from ".$_POST['ipAddress']." at ".$ukTime." on ".$date.".";
// limit line length to 70 characters
//$message = wordwrap($message, 70);
$subject.=" ".$_POST['subject'];
// create additional headers
$additionalHeaders = "From: ".$_POST['email_address'];
if (!empty($_POST['email_address'])) {
$additionalHeaders .= "\r\nReply-To: ".$_POST['email_address'];
}
// send it
$mailSent = @mail($to, $subject, $message, $additionalHeaders);
if ($mailSent) {
//send acknowledgement?
$ackSubject = "Fellinis website enquiry - ".$_POST['subject'];
$ackMessage = "Thank you for your enquiry.\n\nKind regards,\n\nFellinis Ambleside\n-----------------\n";
@mail($_POST['email_address'], $ackSubject, $ackMessage, "From: Fellinis Ambleside \nX-Mailer: PHP/" . phpversion());
}else{
$errors[]=array( 'source' => "send_error",
'text' => 'There was an error sending your message, please try again later or email us directly.');
}
}//end if($errors==null)
}//end if($_SERVER['REQUEST_METHOD'] == 'POST')
?>
Please send us a message by filling in the form below.
|