title: How to get the values of input using PHP
body: <p>Hey i'm having a problem where I cannot seem to get the value of an input using PHP, I have a form in HTML and another file named "handle.php" which i prints the value of username but when I submit It directs me to the file "handle.php" and does not print anything, just shows the script.</p>
  
  <p>I tried doing the script inside the HTML but I got the same result, nothing happened so I thought maybe I need to make a function and then call it onclick but it didn't do anything eventually I made a separate file named "handle.php" and in the form I did "action="handle.php" which lead to the first problem.</p>
  
  <p>HTML:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
      &lt;head&gt;
          &lt;meta charset="UTF-8"&gt;
          &lt;title&gt; Hide/Show Password Login Form&lt;/title&gt;
          &lt;meta name="viewport" content="initial-scale=1.0, width=device-width" /&gt;
          &lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"&gt;
  
          &lt;link rel="stylesheet" href="./style.css"&gt;
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;div class="login_form"&gt;
              &lt;section class="login-wrapper"&gt;
  
                  &lt;div class="logo"&gt;
                      &lt;img src="logo.png" alt=""&gt;&lt;/a&gt;
                  &lt;/div&gt;
  
                  &lt;form id="login" method="post" action="handle.php"&gt;
  
                      &lt;label for="username"&gt;User Name&lt;/label&gt;
                      &lt;input required name="login[username]" type="text" autocapitalize="off" autocorrect="off" /&gt;
  
                      &lt;label for="password"&gt;Password&lt;/label&gt;
                      &lt;input class="password" required name="login[password]" type="password" /&gt;
                      &lt;div class="hide-show"&gt;
                          &lt;span&gt;Show&lt;/span&gt;
                      &lt;/div&gt;
                      &lt;button type="submit"&gt;Sign In&lt;/button&gt;
                  &lt;/form&gt;
              &lt;/section&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>handle.php:</p>
  
  <pre><code>&lt;?php
  echo $_POST['login[username]'];
  ?&gt;
  </code></pre>