title: What makes PHP unset form variables?
body: <p>My HTML code:</p>
  
  <pre><code>&lt;form class="well" name="login" action="text.php" method="post" &gt;
  &lt;input type="text" class="span3" id="username" name"username" placeholder="Enter your valid email"&gt;
  &lt;input type="text" class="span3" id="password" name"password" placeholder="Enter your password"&gt;
  &lt;button type="submit" class="btn" &gt;Enzemble &lt;/button&gt;
  &lt;/form&gt;
        &lt;h2&gt;New User? ... Register&lt;/h2&gt;
          &lt;form class="well" name="register" action="register.php" method="post" &gt;
              &lt;input type="text" class="span3" id="email" name="email" placeholder="Enter your valid email" onBlur="emailValidation()"&gt;
              &lt;button type="submit" class="btn"&gt;Enter Enzemble!&lt;/button&gt;
          &lt;/form&gt; 
  </code></pre>
  
  <p>The bottom form works fine.</p>
  
  <p>The top code gives "undefined index" notice and does not read values of username and password in text.php
  The text.php code:</p>
  
  <pre><code>&lt;?php
  if (isset($email)) $email=$_POST["username"];
  if (isset($password)) $password=$_POST["pasword"];
  echo "username " . $email . "password " . $password;
  ?&gt;
  </code></pre>
  
  <p>The error:
  Notice: Undefined index: pasword in /home/nitin/www/enzemble/text.php on line 8 Notice: Undefined variable: email in /home/nitin/www/enzemble/text.php on line 9 username password</p>
  
  <p>I am not getting html form values in php. This is surprising. I am working on it for a long time. 
  Please help.</p>