From A List Apart this morning, there's a new article about Keeping Navigation Current With PHP. They will show you how, with minimal effort, you can turn your menus into something fluid that reflects more of what your site is about.
They guide you through the creation of a single navigation document (navigation.php) that will be used to include the navigation in each page. It's a simple combination of CSS, HTML, and a little PHP to tell you what page you're currently on. They use a $thisPage variable in PHP to tell the script what page they are on, and to highlight that option accordingly. The rest is just simple inclusion and modification to get it to fit within your site.
While this is a nice idea, there's a much more efficient way to do this than with the multiple ifs that they chose to use. It's nicely thought out, though, and has some other items mentioned that might help your site as well - including using the same menu inclusion to optimize your site for search engines...




