PHP PHP make navigation tab active dynamically By Rahul Bhutani - May 13, 2020 0 1134 Share Facebook Twitter Google+ Pinterest WhatsApp <li <?php if($_SERVER['REQUEST_URI'] == "/index.php" || $_SERVER['REQUEST_URI'] == "/"){echo 'class="active" ';}?> > <a href='index.php'>Home</a> </li>