PHP 5.5 $_POST array empty
<p><strong>EDIT: I used var_dump($_POST) <em>OUTSIDE</em> of the if statement.</strong></p>

<p>I've tried multiple solutions and none have worked, so this is my last attempt at resolving this issue. I have a form written in HTML sending data to a PHP script via POST, and the PHP script for whatever reason is only reading $_POST as empty.</p>

<p>Here is my PHP code:</p>

<pre><code>if (isset($_POST['login'])) {
    die('test');
}
</code></pre>

<p>Here is my HTML form:</p>

<pre><code>&lt;form action="api/login.php" method="post"&gt;
    &lt;input type="text" name="login-email" placeholder="Email"&gt;
    &lt;input type="password" name="login-password" placeholder="Password"&gt;
    &lt;input type="checkbox" name="login-remember-me" checked&gt;
    &lt;button name="login" type="submit"&gt;Login&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p><code>var_dump($_POST);</code> returns:</p>

<blockquote>
  <p>array(0) { } </p>
</blockquote>

<p><code>file_get_contents('php://input');</code> returns:</p>

<blockquote>
  <p>login-email=user%40email.com&amp;login-password=123123&amp;login-remember-me=on&amp;login=</p>
</blockquote>

<p>Like I said, I have tried every solution I've come across after Googling this issue dozens of times. I am using PHP 5.5.32 NTS on Windows 10 Enterprise x64 with IntelliJ IDEA 15.0.4.</p>

<p>EDIT: Doing var_dump($GLOBALS), my input stayed within ["HTTP_RAW_POST_DATA"], didn't end up anywhere else. I have also tried using PHP 5.6.19 NTS instead of 5.5.32, which still did not fix this issue.</p>