";
}
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.
";
}
?>
if ($_GET["calc"] == "")
{
include("gross-profit-margin.php");
}
if ($_GET["calc"] == "2")
{
include("inheritance-tax.php");
}
if ($_GET["calc"] == "3")
{
include("loan-repayment.php");
}
if ($_GET["calc"] == "4")
{
include("savings.php");
}
if ($_GET["calc"] == "5")
{
include("payroll.php");
}
if ($_GET["calc"] == "6")
{
include("stamp-duty.php");
}
if ($_GET["calc"] == "7")
{
include("vat.php");
}
if ($_GET["calc"] == "8")
{
include("car-benefit.php");
}
if ($_GET["calc"] == "9")
{
include("van-benefit.php");
}
?>