Php Question
Posted: Mon Apr 10, 2006 9:58 am
Im looking for a way to show something on a page based on its url.
The way I setup my pages I have my template in 2 pages (header.php, footer.php) and use include on the top and bottom of new pages and insert the page in the middle.. If you understand that. I want to be able to show a small dropdown menu at the bottom based on what page the person is on. I want to be able to put this on the main template file so I dont have to copy the dropdown to every page and to let me update it easier.
Example: If Im on the main page and click on tutorials it would show a dropdown showing different tutorial headings for easier navigation.
Ive been trying this for a while with different codes but Im new to php so most is guessing or changing other code. ive never got just what i wanted.
If anyone could help it would be great.
Thanks,
Jonny
The way I setup my pages I have my template in 2 pages (header.php, footer.php) and use include on the top and bottom of new pages and insert the page in the middle.. If you understand that. I want to be able to show a small dropdown menu at the bottom based on what page the person is on. I want to be able to put this on the main template file so I dont have to copy the dropdown to every page and to let me update it easier.
Example: If Im on the main page and click on tutorials it would show a dropdown showing different tutorial headings for easier navigation.
Ive been trying this for a while with different codes but Im new to php so most is guessing or changing other code. ive never got just what i wanted.
If anyone could help it would be great.
Thanks,
Jonny