I am doing a php project, in that each link page must have same navbar items. I did it by including header.php file which contains navbar code for all files requires navbar. When i click navbar items it is navigating to respective links which i have give, but i need to maintain the selection when the item is selected in navbar. can anybody help me with that.
Thank You
header.php
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="adminhome.php"><span class="glyphicon glyphicon glyphicon-home"></span> bmfmf</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="totalapplications.php">Applications</a></li>
<li><a href="student_details.php">Student Details</a></li>
<li><a href="renewalstudent_details.php">Renewal Student Details</a></li>
<li><a href="block.php">Block</a></li>
<li><a href="roomallotment.php">Allot</a></li>
<li><a href="deallotsingle.php">De-allot</a></li>
<li><a href="availability.php">Availability</a></li>
<li><a href="searchallotment.php">Hostel Details view</a></li>
<li><a href="student_details_master.php">Database</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="createadmin.php"><span class="glyphicon glyphicon-user"></span> Create Admin</a></li>
<li><a href="logout.php"><span class="glyphicon glyphicon-log-out"></span> Logout </a></li>
</ul>
</div>