title: Referencing a Link to a particular inner php
body: <p>I am a newbie exploring php , kindly pardon me if i look silly also since i exactly don't know how to title this, i titled what i felt to be relative . </p>
  
  <p>I have a login form which have inputs email,password and usertype dropdown </p>
  
  <p>Based on usertype selected, table will be selected in db</p>
  
  <p>Logged in user will be redirected to account.php which looks like below </p>
  
  <pre><code>&lt;?php require_once("header.php"); ?&gt;
  &lt;?php require_once("top_bar.php"); ?&gt;
  &lt;?php require_once("left_side_nav.php"); ?&gt;
  &lt;!-- MAIN CONTENTS START --&gt;
  &lt;?php 
  if(isset($_SESSION['login_type']) &amp;&amp; $_SESSION['login_type'] = 'admin')
  {
  require_once("a_inner_dash.php"); 
  }
  else if(isset($_SESSION['login_type']) &amp;&amp; $_SESSION['login_type'] = 'user')
  {
  require_once("u_inner_dash.php"); 
  }   
  else if(isset($_SESSION['login_type']) &amp;&amp; $_SESSION['login_type'] = 'accountant')
  {
  require_once("ac_inner_dash.php"); 
  }   
  ?&gt; 
  &lt;!-- MAIN CONTENTS END --&gt;
  &lt;?php require_once("footer.php"); ?&gt; 
  </code></pre>
  
  <p>The file <code>"left_side_nav.php"</code> is as below </p>
  
  <pre><code>&lt;!-- sidebar menu: : style can be found in sidebar.less --&gt;
  &lt;ul class="sidebar-menu"&gt;
      &lt;li class="header"&gt;MAIN NAVIGATION&lt;/li&gt;
  
          &lt;li&gt;
            &lt;a href="account.php"&gt;
              &lt;i class="fa fa-dashboard"&gt;&lt;/i&gt; &lt;span&gt;Account&lt;/span&gt;
            &lt;/a&gt;
          &lt;/li&gt;
           &lt;li&gt;
            &lt;a href="#"&gt;
              &lt;i class="fa fa-male"&gt;&lt;/i&gt; &lt;span&gt;Menu1&lt;/span&gt;
            &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;
              &lt;i class="fa fa-child"&gt;&lt;/i&gt; &lt;span&gt;Menu2&lt;/span&gt;
            &lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;
            &lt;a href="#"&gt;
              &lt;i class="fa fa-group"&gt;&lt;/i&gt; &lt;span&gt;Menu3&lt;/span&gt;
            &lt;/a&gt;
          &lt;/li&gt;
         &lt;/ul&gt;
  &lt;/section&gt;
      &lt;!-- /.sidebar --&gt;
  &lt;/aside&gt;
  </code></pre>
  
  <p>Now my issue is, When i logged in as admin and i click a menu item for instance Menu1 the result should be on <code>"a_inner_dash.php"</code> and if i logged in as User and click on menu item the result should be on <code>"u_inner_dash.php"</code> and as you see in account.php it's just a part in a webpage </p>
  
  <p>i tried and couldn't sort out a way . Kindly help me please </p>
  
  <p><strong>Note :</strong> The logged in user type is correctly been detected and the correct main content URL is been loaded. The issue is i don't know how to reference the menu from navbar to here which is a part of webpage</p>