title: Meta Refresh with a frame target
body: <p>I have a very basic frame layout: index.html</p>
  
  <pre><code>&lt;frameset rows="80,*" frameborder="1" border="5" framespacing="0"&gt;
      &lt;frame name="topNav" src="top_nav.html"&gt;
      &lt;frameset cols="220,*" frameborder="1" border="5" framespacing="0"&gt;
      &lt;frame name="menu" src="menu_1.php" marginheight="0" marginwidth="0" scrolling="auto" noresize&gt;
      &lt;frame name="content" src="content.php" marginheight="0" marginwidth="0" scrolling="auto" noresize&gt; 
  &lt;/frameset&gt;
  &lt;/frameset&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/5wGMr.jpg" alt="enter image description here"></p>
  
  <p>And a simple login script which checks if the username and password match the database and so on</p>
  
  <p>Now what i want it to do is if the information is correct, is to auto redirect the menu bar, but all i can do is redirect the content section</p>
  
  <pre><code>// check to see if they match!
    if ($username==$dbusername&amp;&amp;$password==$dbpassoword)
    {
        $_SESSION['username']=$username;
        echo '&lt;meta http-equiv="REFRESH" content="2 ; url=servers.php" target="menu"&gt;';
    }
    else 
        echo "&lt;center&gt;Incorrect Information!&lt;/center&gt;" ;
  </code></pre>
  
  <p>Now i can easily do it if i get the user to click on an <code>&lt;a href&gt;</code> tag</p>
  
  <p>E.G. <code>&lt;a href="servers.php" target="menu"&gt;click me&lt;/a&gt;</code></p>
  
  <p>So i thought i could simply put the <code>target="menu"</code> in my <code>meta</code> tags, but all it does is redirect the content page.</p>
  
  <p>So my question is, am i doing something wrong, or is there a simpler way to do this?</p>