Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php show active page

<ul class="nav navbar-nav">
      <li class="<?= ($activePage == 'index') ? 'active':''; ?>"><a href="index.php">Home</a></li>
      <li class="<?= ($activePage == 'contact-us') ? 'active':''; ?>"><a href="contact-us.php">Contact</a></li>
</ul>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #show #active #page
ADD COMMENT
Topic
Name
3+7 =