Help with Relative paths + navigation - php template pages
Hi All,
i have searched online in every tutorial and many forums and I am still struggling to find a solution to my problem. How do I go about solving this please let me know!
I need to design a menu file which I can use across all the website. The file has links on it which takes the visitor to different directories so the structure of the links are like this:
index.php
/categoryone/main.php
/categorytwo/main2.php
and so on.
when I include the html file into the php pages, and I click on the links through the category (subdirectory) files, the links dont work. simply because the links tends to add the directory name on top of the link path already showing in the menu.
so it shows something like this:
/categoryone/categoryone/main.php
am not too sure what do i need?
is there a script? or some code that can dynamically change the urls of the menu to to enable them to work?
please help - i am very stuck!
thanks,
T
ps: could you please post an example how to go about solving this?
__________________
www.womenxtra.co.uk
Join our new community and take part in the discussions!
|