PHP - How to retrieve data from $_POST
<p>I have a form on one page and that submits to an other page. When trying to retrieve the data with $_post, it fails. var_dump however shows the form entries.
I couldn't find any answers for my problem.
I tried changing the php.ini file like some users advised or adding a .htaccess with some rewrite rules. So I think my problem is in my code? 
If used the php code on the same page it however works. But I want the result on another page.</p>

<p><em>My HTML:</em></p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="invoerForm"&gt;
 &lt;form action="insert.php" method="POST"&gt;
  Serienummer: &lt;br&gt;
  &lt;input type="Text" name="Serienummer"&gt;&lt;br&gt;
  Status: &lt;br&gt;
  &lt;input type="Text" name="Status"&gt;&lt;br&gt;
  &lt;input type="submit" value="Voeg toe"&gt;
 &lt;/form&gt;
 
&lt;/div&gt;</code></pre>
</div>
</div>
</p>

<p><em>My $_POST:</em></p>

<p><div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;Serienummer: &lt;? echo $_POST['Serienummer'] ?&gt;&lt;/p&gt;
&lt;p&gt;Status: &lt;? echo $_POST["Status"]; ?&gt;&lt;/p&gt;
&lt;p&gt;&lt;?php var_dump($_POST); ?&gt;&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p><em>var_dump</em></p>

<p>array(2) { ["Serienummer"]=> string(1) "q" ["Status"]=> string(1) "q" } </p>

<p><em>Result of $_POST</em></p>

<p>Serienummer:</p>

<p>Status: </p>

<p>What did I do wrong?</p>