page redirect in php
<p>I have created one login form and it is redirecting to validatelogin.php and validation happened.
     
          </p>

<pre><code>      &lt;tr&gt;
        &lt;td&gt;Username / Email&lt;/td&gt;
        &lt;td&gt;&lt;input name="usr_email" type="text" class="required" id="txtbox" size="25"&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;Password&lt;/td&gt;
        &lt;td&gt;&lt;input name="pwd" type="password" class="required password" id="txtbox" size="25"&gt;&lt;/td&gt;
      &lt;/tr&gt;

      &lt;tr&gt;
        &lt;td colspan="2"&gt; &lt;div align="center"&gt;

                &lt;input name="doLogin" type="submit" id="doLogin3" class="styled-button-1" value="Login" /&gt;
</code></pre>

<p>myvalidate.php is :</p>

<pre><code>if(empty($err)){

          header("Location: index.php?Page=defaultblog");
}
else
{
  $err[] = "Invalid Login. Please try again with correct user email and password.";
}
} else {
        $err[] = "Error - Invalid login. No such user exists";
}
}
</code></pre>

<p>In local machine , if no error it redirect to <code>header("Location: index.php?Page=defaultblog");</code> but when i upload it inot server it only redirect to <code>validate.php</code>
Please tell me?</p>
