Re: [PHP] Displaying one of three functions.

2002-10-30 Thread dwalker
2002 8:14 AM Subject: [PHP] Displaying one of three functions. >I have three functions written which work and I want to only display one >of them depending on user input. >What is the correct way to code this? >I can display all three functions but not one. > >t

Re: Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread @ Edwin
Hello Martin, "Martin Hudec" <[EMAIL PROTECTED]> wrote: > Hello @ Edwin, > > of course you can but let me say something > > if .. else is used when u > need to execute one thing in case that requirement in if is met and > second thing if it is not met... > > in case of if...elsif : command behind

Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello @ Edwin, of course you can but let me say something if .. else is used when u need to execute one thing in case that requirement in if is met and second thing if it is not met... in case of if...elsif : command behind elsif is executed when requirement in if is not metyou can add as ma

Re: Re[2]: [PHP] Displaying one of three functions.

2002-10-28 Thread @ Edwin
Hello, "Martin Hudec" <[EMAIL PROTECTED]> wrote: > 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)); > else

Re[2]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
Hello Steve, oh my fault...i apologize...this should worki 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=="f

Re: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
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_nonfinla

[PHP] Displaying one of three functions.

2002-10-28 Thread Steve Jackson
I have three functions written which work and I want to only display one of them depending on user input. What is the correct way to code this? I can display all three functions but not one. this is my code:  "; echo ""; display_button("show_cart.php", "continue-shopping", "Continu