";
}
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 Afternoon!- Monday, 14 October 2024
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.
";
}
?>
We can be contacted in all the usual ways
Merchant McDonald & Company
Certified Practising Accountants
Station Chambers
36 Bolton Street
Bury
Lancs
BL9 0LL