Jump to content

navigation


jonniejoejonson

Recommended Posts

Hey guys... how do sites have navigation links, like the one at the top of this page...

 

PHP Freaks Forums > PHP and MySQL > PHP Help > Start new topic

 

I can see it is fairly simple to do IF there is only one root to for example 'Start new topic'... however if like on my site there are many roots to get to 'Start new topic',

how do you keep track of the root they have taken.

 

I can store it in session variables because what if a user clicks the back button or refreshes a page?

thanks to any responders.

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

Another way to do it is simply by doing something like this...

 

Forum/website name > $forum > $category > Text here or maybe even if your viewing a thread... $threadname

 

All you'll need to do is assign the variables before that text. e.g. by using $_GET probably?

Link to comment
https://forums.phpfreaks.com/topic/91965-navigation/#findComment-471164
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.