";
}
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, 31 May 2025
if ($completed==FALSE)
{
?>
}
else
{
print "
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.
";
}
?>
Please click on any of the following healthchecks to see how your business is performing.
These business health checks enable you to carry out a self assessment to see which areas of your business may benefit from greater focus and attention and as always we are here to help.
You will need Adobe Reader on your computer to read these files - if you do not have the software the latest version can be found and installed from our downloads section.