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
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
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
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
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
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
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
7 matches
Mail list logo