Page 1 of 1

Dynamic Drop Down List.

Posted: Fri Jun 20, 2008 4:07 am
by steveonly20
Hi everyone, this is my first post so please go easy on me!

I am quite new to PHP but on each page I plan to have a options list to different pages. The problem I have is that when the pages are placed in there respective folders the links do not work. If i kept all the pages in one folder it is fine but administering this would become a little messy.

For example the site is:

1st page, http://www.xyz.com/news/index.php
2nd page, http://www.xyz.com/members/index.php

Is there anyway I can find and extract the location, e.g http://www.xyz.com and build from there.

Cheers in advance,
Stevo.

Re: Dynamic Drop Down List.

Posted: Fri Jun 20, 2008 5:42 am
by highjo
ca you post your codes here?

Re: Dynamic Drop Down List.

Posted: Fri Jun 20, 2008 5:53 am
by Kieran Huggins
navigation is usually best served as a list (<ul>) IMO.

Take a look at the $_SERVER array, you should find everything you need right there.