Two forms interfere with each other on submit
<p>I have two forms on a page-'indexpage plus a included page'. Their actions point as so action=''. The problem is when I hit submit on the search bar, it shows a header error. The submit for the login works fine. I narrowed the problem all the way down to</p>

<pre><code>tabindex="6" type="submit"
</code></pre>

<p>in the submit button of the login form.</p>

<p>They both have different names.</p>

<p>Login Form:</p>

<pre><code>echo'&lt;div id="container"&gt; 
  &lt;div id="topnav" class="topnav"&gt; &lt;font color="white"&gt;Have an account? &amp;nbsp&lt;/font&gt; &lt;a href="login" class="signin"&gt;&lt;span&gt;Sign in&lt;/span&gt;&lt;/a&gt;&lt;a href="/*********/register" class="signin3"&gt;&lt;span&gt;Sign Up&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;
  &lt;fieldset id="signin_menu"&gt;';
  output_errors($errors);
  echo'
    &lt;form id="signin" action="" method="POST" &gt;
    &lt;br&gt;
      &lt;label for="username"&gt;&lt;font color="black"&gt;Username or email&lt;/font&gt;&lt;/label&gt;
      &lt;input id="username" name="username" value="" title="username" tabindex="4" type="text"&gt;
      &lt;/p&gt;
      &lt;p&gt;
        &lt;label for="password"&gt;&lt;font color="black"&gt;Password&lt;/font&gt;&lt;/label&gt;
        &lt;input id="password" name="password" value="" title="password" tabindex="5" type="password"&gt;
      &lt;/p&gt;
      &lt;p class="remember"&gt;
        &lt;input id="signin_submit" name="submit" value="Sign in" tabindex="6" type="submit"&gt;
        &lt;input id="remember" name="remember_me" value="1" tabindex="7" type="checkbox"&gt;
        &lt;label for="remember"&gt;&lt;font color="black"&gt;Remember me&lt;/font&gt;&lt;/label&gt;
      &lt;/p&gt;
      &lt;p class="forgot"&gt; &lt;a href="/*********/recovery/password" id="resend_password_link"&gt;Forgot your password?&lt;/a&gt; &lt;/p&gt;
      &lt;p class="forgot-username"&gt; &lt;A id=forgot_username_link 
title="If you remember your password, try logging in with your email" 
href="/recovery/username"&gt;Forgot your username?&lt;/A&gt; &lt;/p&gt;
    &lt;/form&gt;
  &lt;/fieldset&gt;
&lt;/div&gt;';
</code></pre>

<p>Search Form:</p>

<pre><code>&lt;form action='' method='POST'&gt;
&lt;input type='text' value='". $clean ."' name='keywords'/&gt; 
&lt;input type='submit' name='submit2' Value='Search'/&gt;
&lt;/form&gt;
</code></pre>

<p>Header Error:</p>

<blockquote>
  <p>Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files
  (x86)\xampp\htdocs**<strong><em>*</em></strong>\index.php:298) in C:\Program Files
  (x86)\xampp\htdocs**<strong><em>*</em></strong>\pages\search.inc.php on line 35</p>
</blockquote>
