Highlight a hyperlink

home

This is the home of this very small web site.

This web page is created using a single PHP file that is often used to select which web content to display based on the URL parameters passed to it. Using these URL parameters, we can check to see which hyperlink we would like to highlight.

The parameter in this example is simply the letter p, and this is converted to a variable at the very top of the page, with HTML and PHP code stripped out.

The PHP code has added the class="currentnav" attribute to the navigation list element that holds this link. View the page source and have take a look.