I like to make like the following.
(1) If the value of $myVariable is “yes”, then goTo(redirect) to “yes.php”
(2) If the value of $myVariable is not “yes”, then goTo(redirect) to “no.php”
The code below doesn’t work correctly, but it shows what I want.
<?php
if ($myVariable=="yes")
{goTo yes.php}
else
{goTo no.php}
?>
How can I make what I want in PHP?