Jump to content

if page = navigation..


flynryan692

Recommended Posts

This should be simple, I think I am just confusing my self...

 

Ok, so I have a navigation bar at the top..

 

<div id="nav">
                 <ul>
                      <li><a href="?page=index"></a></li>
                      <li><a href="?page=blah"></a></li>
                      <li><a href="?page=cool"></a></li>
                 <ul>
</div>

       

 

Ok, so I want to say, if the person is on the "cool" page then

 

<a href=?page=cool class="active" >

 

else <a href=?page=cool >

 

How would I do that efficiently for every single link? Also, I have a drop down, and a submenu in the drop down...aagh.

 

I can post the entire nav bar if needed..

Link to comment
https://forums.phpfreaks.com/topic/207479-if-page-navigation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.