Código PHP:
Ver original- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
- <html xmlns="http://www.w3.org/1999/xhtml"> 
- <head> 
- <style> 
- .selected{ 
- background-color:#99FF00; 
- } 
- </style> 
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> 
- <title>Documento sin título</title> 
- </head> 
- <body> 
- <ul> 
-   <li  <?php  if(isset($_GET['linkId']) && $_GET['linkId']==0) echo "class=\"selected\""; ?>- ><a href=" <?php echo $_SERVER['PHP_SELF']?>- ?linkId=0" target="_self">Home</a></li> 
-   <li  <?php  if(isset($_GET['linkId']) && $_GET['linkId']==1) echo "class=\"selected\""; ?>- ><a href=" <?php echo $_SERVER['PHP_SELF']?>- ?linkId=1" target="_self">Home</a></li> 
-   <li  <?php  if(isset($_GET['linkId']) && $_GET['linkId']==2) echo "class=\"selected\""; ?>- ><a href=" <?php echo $_SERVER['PHP_SELF']?>- ?linkId=2" target="_self">Home</a></li> 
- </ul> 
- </body> 
- </html>