Want to pep up your web page with some dynamic menus? Here’s a simple solution that only requires a few lines of PHP and CSS.
UPDATE (11/1/08): Simplified the header code and edited the syntax of the list element echo code.
Add the following to the top of your page (before the DOCTYPE or HTML tag).
<?php // Get current page file name $page = basename($_SERVER["PHP_SELF"]); ?>
Then add the following to your menu item where ...Continue Reading