title: form post method not working
body: <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Register&lt;/title&gt;
      &lt;head&gt;
      &lt;body&gt;
          &lt;h3&gt;Register Page&lt;/h3&gt;
          &lt;a href="index.php"&gt;Click here to go back&lt;/a&gt;&lt;/br&gt;
          &lt;form action="register.php" method="post"&gt;
              Enter Username: &lt;input type="text" name="username" required="required"/&gt;&lt;/br&gt;
              Enter Password: &lt;input type="password" name="password" required="required"/&gt;&lt;/br&gt;
              &lt;input type="submit" value="Register"/&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  
  &lt;?php
      if ($_SERVER["REQUEST_METHOD"] == "POST") {
          $username = mysql_real_escape_string($_POST['username']);
          $password = mysql_real_escape_string($_POST['password']);
  
          echo "Username is :" . $username . "&lt;br&gt;";
          echo "Password is :" . $password;
      }
  ?&gt;  
  </code></pre>
  
  <p>When I execute the page with any random username and password it doesn't show me text and password inside the text box I wrote. </p>
  
  <p><img src="https://i.stack.imgur.com/SMRwo.png" alt="enter image description here"></p>