PHP Current Class not echoing page

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.

    <li <?php if($pageOn == 'index.php'){?> class="current"<?php }?>>
            <a href="index.php">Home</a> </li>
            <a href="#">Programs</a> </li>
            <a href="#">Partnerships</a> </li>
            <a href="#">Donate</a> </li>
          <li <?php if($pageOn == 'contact.php'){?> class="current"<?php }?>>
            <a href="contact.php">Contact Us</a> </li>

This is the PHP at the top of the page directing $pageOn.

$pageOn = basename($_SERVER['PHP_SELF']);
$mItem = $pageOn;

Site URL:

I don’t see the “current” class being added on the home page either.

What is the value of $pageOn ?