I can't find the error. Why doesn't receive my result page the POST variables from my form? I do always get an empty array with my var_dump. Can anyone here help me out? The code is so simple that I don't know what further possible error sources I could remove. If I switch to GET it works instantly.
I'm testing this on my Debian old stable system which I have been using for such things for years now without issues. (But it doesn't work on my externally hosted web server either.)
My form.php:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="device-width, initial-scale=1">
<title>Form page</title>
</head>
<body>
<form name="test" action="result.php" enctype="text/plain" method="post">
<select name="chose">
<option value="1">one</option>
<option value="2">two</option>
<option value="3">three</option>
</select>
<input type="submit" value="save">
</form>
</body>
</html>
My result.php:
<?php
var_dump($_POST);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="device-width, initial-scale=1">
<title>Result page</title>
</head>
<body>
<h1>Result</h1>
<p><a href="form.php">return</a></p>
</body>
</html>
I think I'm getting crazy here. I must overlook something breathtakingly simple.