SOLVED: I omitted the name attribute on the input fields. I have a simple html/php -form. And I submit it. The $_POST is always empty. If I try a get then the
Do all your form input fields have a name attribute or just an id attribute? It might be as simple as adding a name attribute to each input field.
<input type="text" id="afield" value="a value">
Is not the same as
<input type="text" id="afield" name="afield" value="a value">
$_POST['afield'] should only return a value with the second example above