I am having problem using the if/then/else statements.
here is my context:
$email = trim($_POST['email']);
$name = trim($_POST['name']);
$lname = trim($_POST['lname']);
$order = trim($_POST['order']);
$tel = trim($_POST['tel']);
$comments = trim($_POST['comments']);
$op ="0000-0000-0000";
$om ="mail@mail.com";
$bronze = "180 EGP/yr";
$silver ="280 EGP/yr";
$gold ="350 EGP/yr";
$plat ="420 EGP/yr";
$free ="EGP/yr";
if ($order == 'bronze') {
echo "Please notice that your order will cost $bronze";
}
Now how can I do it again with $silver ? And so on like for silver, gold, plat and free or even if I wanna add more.
The switch statement would actually be a better fit for this situation: