php navbar navigation problems

Status
Not open for further replies.

maikunari

New member
Dec 16, 2007
26
1
0
Tokyo, Japan
www.tao-of-guitar.com
So here's the problem.

I've included the navbar into each page, index.php too obviously.
But the problem is, if I have the links structured as:
<li><a href="./folder/page.php">Page</a></li>
the navigation works fine from the index page, but the deeper pages don't work, they need <a href="../folder/page.php"> to work.

So, my question is do I need to make two separate navbars?
Or is there some trick I'm missing to make this work?

Thanks
maikunari
 


You could use absolute paths or have the navbar in a separate file and include it where necessary, then it would only be the include that needs changing.
 
Status
Not open for further replies.