your confusing me...i mite use this:
<?php
// define the options in your navbar as shown below
// remember to include the "/" before each link.
// this is because the $current_url variable below will do so
// and the comparison is basically just a comparison between two
// strings of text.
$nav_options = array(
"Home" => "/index.php",
"About" => "/about.php",
"Archives" => "/news/search.php",
"Contact" => "/contact.php",
"Community" => "/forum.php",
"Guestbook" => "/guestbook.php",
"Links" => "/links.php",
"Teams" => "/teams.php"
);
// define our current location
$current_url = $_SERVER['PHP_SELF'];
// begin the navigation div and the top of the UL
print("
<div id=\"navcontainer\">\n
<id=\"navlist\">\n");
// tabindex is set to "2" here, because my "skiplink" is set as "1"
// more information on a skiplink can be found at
// [url]http://www.wac.ohio-state.edu/tutorials/section508/skipnav.htm[/url]
// more information on tabindex can be found at
// [url]http://www.w3.org/TR/html401/interact/forms.html#adef-tabindex[/url]
$tabindex=2;
// start the loop to display the options
foreach($nav_options as $key=>$val){
// if the destination is NOT the same as the current location, make a link
if($val!=$current_url){
print("| <a href=\"$val\" tabindex=\"$tabindex\">$key</a> |");
$tabindex++; // increment tabindex here
}
// otherwise, this means that the destination of the link is the same as current location
// in which case we DO NOT want to create a link
else{
print("| <class=\"curr_loc\">{$key}</li> |");
}
} // clode the foreach loop
// close the navbar
print("</div>");
?>