Easy way to remove link from nav bar if you are on its page with php
<p>Is there an easy way to not echo part of the nav?</p>

<p><strong>Example</strong> 
"Register" on the nav bar is not needed if you are on register.php Any ideas?</p>

<p>As you can see the else concept is not very effective if they navigate to register.php</p>

<pre><code>&lt;?php 
 if(isset($_GET['user_signin'])){
echo("&lt;li&gt;&lt;a data-toggle=\"modal\" href=\"#myModal\"&gt;Login&lt;/a&gt;&lt;/li&gt;             
&lt;li&gt;&lt;a href=\"#\"&gt;Email Us&lt;/a&gt;&lt;/li&gt;");
            }else{
            echo("
            &lt;li&gt;&lt;a data-toggle=\"modal\" href=\"#myModal\"&gt;Login&lt;/a&gt;&lt;/li&gt;               
            &lt;li&gt;&lt;a href=\"#\"&gt;Email Us&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=\"#\"&gt;Register&lt;/a&gt;&lt;/li&gt;");          
}
?&gt;
</code></pre>
