PHP $_GET is not working for me
<p>I have a code like as follows : </p>

<pre><code>&lt;?php 
require 'database/db.php';
if($_SERVER["REQUEST_METHOD"] == "POST") {
   $name = $_POST["userid"];
   $password = $_POST["password"];
   if (empty($name) || empty($password)) {
      header("Location : AdminLogin.php?status=failure");
       exit();
    }
   $count = verifyUser($name, $password);
    if($count == 1 )
     {
        header("Location : AdminLogin.php?status=success");
      }
    else {
        header("Location : AdminLogin.php?status=failure");
      }

   exit;
}
?&gt;
&lt;?php include('inc/header.php'); ?&gt;
  &lt;div class = "section page"&gt;
    &lt;div class ="wrapper"&gt;
      &lt;div class="page-header"&gt;
        &lt;b&gt;Admin Login &lt;/b&gt;
      &lt;/div&gt;
      &lt;?php if(isset($_GET["status"]) AND $_GET["status"]=="success") { ?&gt;
        &lt;p&gt; Your login was a success .. I will redirect you to another page.&lt;/p&gt;
      &lt;?php } else {?&gt;
      &lt;form method="post" class="form-signin" action="AdminLogin.php"&gt;
        &lt;h2 class="form-signin-heading"&gt;Sign In&lt;/h2&gt;
        &lt;input type="text" name ="userid" class="input-block-level" placeholder="UserID..."&gt;
        &lt;input type="password" name ="password" class="input-block-level" placeholder="Password..."&gt;
        &lt;button class="btn btn-large btn-primary" type="submit"&gt;Sign in&lt;/button&gt;
      &lt;/form&gt;
        &lt;?php } ?&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;?php include('inc/footer.php'); ?&gt;
</code></pre>

<p>As soon as I click the Sign In button , I perform validation of the user on the server side and return an int (should be bool, I agree) whether the login was successful or not. </p>

<p>I am redirecting to the same page . </p>

<p>Findings ... </p>

<p>I have verified that $count is being returned properly. i.e if the username and the password matches count = 1 else count !=1 . so far so good. I have also noticed that it fails after that. </p>

<p>Thanks 
Gagan</p>

<p>Edit : verifyUser (This is just a stub )</p>

<pre><code>function verifyUser($username, $password)
{
    return  strcmp ( $username , $password )
}
</code></pre>
