Navigation Higlighting using PHP

Here is a simple script that can be used to highlight an individual link on a page using PHP

Example Code

Enter the following code into a file named functions.php

Create pages named test.php, test2.php, test3.php, test4.php and enter the following code into each of them.

Create a file named nav.php and enter the following code.

Now copy all of the files to the root of your web directory and browse to test.php. Notice that the class on the "Test" link is select and the rest are blank. This is all you need to highlight an individual link on a page.

line

Services Web Design Content Management Consulting Services