Dynamic Drop Down List.
Posted: Fri Jun 20, 2008 4:07 am
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.
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.