Please enter your name.

"; } if (!$_POST["email"]) { $feedback .= "Please enter your email address.

"; } list($userName, $mailDomain) = split("@", $email); if (!checkdnsrr($mailDomain, "MX")) { $feedback .= "Invalid Email Domain

"; } if (!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { $feedback .= "Your email address doesn't appear to be valid - please check and try again.

"; } if ($feedback=="") { $sql = mysql_query("SELECT * FROM subscribers WHERE email='$email'"); $numRows = mysql_num_rows($sql); if ($numRows>0) { $feedback = "That email address is already subscribed."; } } if ($feedback=="") { $insertresult = mysql_query("INSERT INTO subscribers (name, email) VALUES ('$name', '$email')") or die (mysql_error()); if ($insertresult) { $completed = TRUE; } $customer_ip = $_SERVER['REMOTE_ADDR']; $to = 'mail@merchantmcdonald.co.uk';//mikew@mustardgraphics.co.uk $title = "Merchant McDonald Newsletter Sign Up! $mailingtime"; $header = "From: \"".$name."\" <".$email.">"; // Found elsewhere $body = "You have a new subscriber, details below\r\n\r\n"; $body .= "".$name."\r\n"; $body.= "\r\n"; $body.= "".$email."\r\n"; mail($to,$title,$body,$header); } } ?> Accountant - Chartered Certified Accountants Merchant McDonald & Company
Good Morning!  -  Saturday, 20 April 2024   
Links to Merchant McDonald Home Page
Links to Merchant McDonald Enquiry Form
Links to Disclaimer and Privacy Statement
Download our App
Subscribe to our Newsletter ".$feedback."

"; } ?>
Thanks - you have been subscribed to our newsletter successfully. You can unsubscribe at any time by clicking the link at the bottom of each email we send.

"; } ?>

We can be contacted in all the usual ways
Merchant McDonald & Company
Certified Practising Accountants


Station Chambers
36 Bolton Street
Bury
Lancs
BL9 0LL

0161-764 1761
0161-764 6006
mail@merchantmcdonald.co.uk
www.merchantmcdonald.co.uk


Location Map
If you are visiting our offices and need directions, please use our map by clicking here.

copyright Mustard Graphics © 2024   Website Design by Mustard Graphics