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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.