$value) { // assign to temporary variable and strip whitespace if not an array $temp = is_array($value) ? $value : trim($value); // if empty and required, add to $missing array if (empty($temp) && in_array($key, $required)) { array_push($missing, $key); } // otherwise, assign to a variable of the same name as $key elseif (in_array($key, $expected)) { ${$key} = $temp; } } } // validate the email address if (!empty($email)) { // regex to ensure no illegal characters in email address $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/'; // reject the email address if it doesn't match if (!preg_match($checkEmail, $email)) { array_push($missing, 'email'); } } //check the spam question is correct $spamquestion = strtolower($_POST["spamquestion"]); if ($spamquestion != "cold") { array_push($missing, 'spamquestion'); } // go ahead only if not suspect and all required fields OK if (!$suspect && empty($missing)) { // set default values for variables that might not exist $interests = isset($interests) ? $interests : array('None selected'); // build the message $body = "Name: $name\n\n"; $body .= 'Interested in: '.implode(', ', $interests)."\n\n"; $body .= "Title: $title\n"; $body .= "Company: $company\n"; $body .= "Address: $address\n"; $body .= "Town/City: $town\n"; $body .= "County: $county\n"; $body .= "Post Code: $postcode\n"; $body .= "Telephone: $telephone\n"; $body .= "Fax: $fax\n"; $body .= "Email: $email"; // limit line length to 70 characters $body = wordwrap($body, 70); // create additional headers $additionalHeaders = "From: $name<$email>"; if (!empty($email)) { $additionalHeaders .= "\r\nReply-To: $email"; } // send it $mailSent = mail($to, $subject, $body, $additionalHeaders); if ($mailSent) { // $missing is no longer needed if the email is sent, so unset it unset($missing); } } } ?> Latimer Trend and Company Ltd

Send me a brochure

Please complete the missing item(s) indicated.

Sorry, there was a problem sending your message. Please try later.

Your message has been sent. Thank you for contacting us.

I’d like more information about your services, please send me a brochure.

I am particularly interested in:

/> Required
/> Required
/> Required
/> Required
/> Required

To prevent spam, please complete the simple question below (in lowercase):

Required

Please note, we respect your privacy and will never divulge the information provided above to third parties for any purpose (See our Privacy Policy).  

 

Quick Estimate

To estimate the cost of your print requirements please use our online form.

Get an estimate >