I created a psuedo class of current to display over the menu to show a user where they are at. However when implementing the code it seems the server is only catching the current page on index and not contact us. The other pages are not up yet. I am wondering maybe if I did something incorrect in the coding.

This is the menu code.

Code:
 
        <ul>
    <li <?php if($pageOn == 'index.php'){?> class="current"<?php }?>>
            <a href="index.php">Home</a> </li>
          <li>
            <a href="#">Programs</a> </li>
          <li>
            <a href="#">Partnerships</a> </li>
          <li>
            <a href="#">Donate</a> </li>
          <li <?php if($pageOn == 'contact.php'){?> class="current"<?php }?>>
            <a href="contact.php">Contact Us</a> </li>
     
        </ul>
This is the PHP at the top of the page directing $pageOn.

Code:
<?php
$pageOn = basename($_SERVER['PHP_SELF']);
$mItem = $pageOn;
?>
Site URL: http://pinkandgreenfoundation.org/test/index.php