Hi NogDog and all.
Many thanks for all your help and input, the script now works great.
<?php
if ($country == 'United Kingdom'){
echo money_format('%.2n',$vat_total = $course_sub_total * 17.5 /100);
}
elseif (empty($vat_number) && (in_array($country, array("Austria", "Belgium", "Cyprus",
"Czech Republic", "Denmark", "Estonia", "Finland", "France", "Germany", "Greece",
"Hungary", "Ireland", "Italy", "Latvia", "Lithuania", "Luxembourg", "Malta",
"Netherlands", "Poland", "Portugal", "Slovakia", "Slovenia", "Spain", "Sweden")))){
echo money_format('%.2n',$vat_total = $course_sub_total * 17.5 /100);
}
elseif (empty($vat_number) && (in_array($country, array("Austria", "Belgium", "Cyprus",
"Czech Republic", "Denmark", "Estonia", "Finland", "France", "Germany", "Greece",
"Hungary", "Ireland", "Italy", "Latvia", "Lithuania", "Luxembourg", "Malta",
"Netherlands", "Poland", "Portugal", "Slovakia", "Slovenia", "Spain", "Sweden")))){
echo money_format('%.2n',$vat_total = 0);
}
else
{
echo money_format('%.2n',$vat_total = 0);
}
?>
Many thanks again.