Hello Steve,

I hope I understand your questions...so first we will check value of
country (if it is other than finland)...then if the first if
requirement is not met we will continue to second part (checking
express)...and so on....

if {$country!="finland"){
   display_shipping(calculate_nonfinland_cost($country));
   break;
}
elsif ($country=="finland" && $express=="no") {
   display_shipping(calculate_shipping_cost($weight));
   break;
}
else ($country=="finland" && $express=="yes") {
   display_shipping(calculate_express_cost($express));
   break;
}

hope it helps...


-- 
Best regards,
 Martin                            mailto:corwin@;corwin.sk

Monday, October 28, 2002, 2:20:39 PM, you wrote:

SJ>    //de-bug
SJ>    //echo "test & $country & $express";

well shouldn't here be && or and?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to