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.
Dynamic Drop Down List.
Moderator: General Moderators
Re: Dynamic Drop Down List.
ca you post your codes here?
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: Dynamic Drop Down List.
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.
Take a look at the $_SERVER array, you should find everything you need right there.