I am having a problem sending POST parameters with my relatively fresh Apache install.
In my document root, I have a file test.html which has the following:
<form action="/test" method="POST">
<input type="text" name="param" value="test" />
<input type="submit" />
</form>
My .htaccess file sets the index file to be serve.php, as follows:
DirectoryIndex serve.php
Inside serve.php, I simply print out the POST parameter as follows:
<?= $_POST['param'] ?>
As written, this does not work. If I change the method to GET (and also change the serve.php file to access GET) it works. If I explicitly specify the action to be "/test/serve.php" it works.
Somehow it appears the POST parameters are being lost in translation to the index file. Thoughts on why?