I am updating a site that used to be in pure HTML.
On the original site each of the 5 or so sections had links on the
front page. When you enter a section the image for the link on the nav
changes to indicate which section you are in (head to
www.yorkshirelaser.co.uk to see what I mean).
I need to replicate this on the new PHP system but am using an include
file for the navigation, so I am unable to hardcode the relevent image
on the navigation. I don't really want to post things to the query
string so wondered if anyone has a solution for figuring out which page
I am on and getting the nav to choose the relevent image for the
current section.
This must be a typical issue in PHP web development so can anyone give
me the typical way of solving this?
Only way I can think of doing this is to set a variable in each page
just before I include the nav.php file, then use this to figure out
which section the user is in - but is there a better way?
Thanks for any and all advise.