Hello,
I have a form like this:
<form action="/somewhere" method="post"> ... </form>
I process the form in /somewhere/index.php. Apache is configured to use index.php as a DirectoryIndex. But when I get there, $_POST is empty. I only see values in $_POST if my form looks like this:
<form action="/somewhere/index.php" method="post"> ... </form>
I'd prefer to use the simpler URL. Why should it make any difference whether I leave off the "/index.php"?
Thanks,
Paul
nothing in $_POST using DirectoryIndex
Moderator: General Moderators
Re: nothing in $_POST using DirectoryIndex
what about the order of DirectoryIndex.pjungwir wrote: Apache is configured to use index.php as a DirectoryIndex.
e.g
DirectoryIndex index.html index.php
in that example apache first looks index.html, if it could not find then tries index.php.
so if you have index.html in that folder that means apache loads index.html first.
so may be the problem is the order of DirectoryIndex.