Switch case and greater than
Posted: Mon Jan 12, 2004 4:39 pm
Ok I have a qty field in my form and based on that I need to send and email to some one. It the $qty is 50 or greater I need to send to $email2 if $qty is less that 50 I need to send to $email1
This is what I have...
It does not work!
I know nothing about using greater than less than with switch. So if anyone could help?
This is what I have...
Code: Select all
<?php
switch($qty){
case "<49": $address="$email2"; break;
default: $address="$email1";
}
?>I know nothing about using greater than less than with switch. So if anyone could help?