nothing in $_POST using DirectoryIndex
Posted: Mon Jan 22, 2007 3:38 pm
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
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