Is there an easy way to not echo part of the nav?
Example
“Register” on the nav bar is not needed if you are on register.php Any ideas?
As you can see the else concept is not very effective if they navigate to register.php
<?php
if(isset($_GET['user_signin'])){
echo("<li><a data-toggle=\"modal\" href=\"#myModal\">Login</a></li>
<li><a href=\"#\">Email Us</a></li>");
}else{
echo("
<li><a data-toggle=\"modal\" href=\"#myModal\">Login</a></li>
<li><a href=\"#\">Email Us</a></li>
<li><a href=\"#\">Register</a></li>");
}
?>
Try this example.