Hello Steve,
oh my fault...i apologize...this should work....i shouldn't use break
;)
if {$country!="finland"){
display_shipping(calculate_nonfinland_cost($country));
}
elsif ($country=="finland" && $express=="no") {
display_shipping(calculate_shipping_cost($weight));
}
elseif ($country=="finland" && $express=="yes") {
display_shipping(calculate_express_cost($express));
}
or (from my point of view is this better)
if {$country!="finland") :
display_shipping(calculate_nonfinland_cost($country));
elsif ($country=="finland" && $express=="no") :
display_shipping(calculate_shipping_cost($weight));
elseif ($country=="finland" && $express=="yes") :
display_shipping(calculate_express_cost($express));
endif;
again i apologize...
--
Best regards,
Martin mailto:corwin@;corwin.sk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php