[SOLVED]convert swicth statement to if
Posted: Thu Oct 28, 2004 2:55 pm
Hello I'm trying to convert switch statement to if.
As i want to check for two conditions from the form.
Here is the switch code
Please help.
As i want to check for two conditions from the form.
Here is the switch code
Code: Select all
switch($_POST['action']){
case "A":
$to = $Aemail;
$info = "";
break;
case "B":
$to = $Bremail;
$info = Binfo();
break;
case "C":
$to = $Cemail;
$info = Cinfo();
break;
case "D":
$to = $Demail;
$info = Dinfo();
break;
case "E":
$to = $Email;
info = "";
break;
default:
exit("Unknown ");
}