|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-02-24 23:55 UTC] vanlei at yahoo dot com
Description: ------------ $_POST variables aren't accessible from within a multiview if one configures the action of a form to be the child of a multiview. In other words, If I set the action of a form to be 'example.com/multi/sub' where multi is a PHP file called multi.php that catches the url 'example.com/ multi/sub/' (by using apache's multiviews), multi.php will not have access to the $_POST variable. It works if one sets the action as 'example.com/multi/ '. Reproduce code: --------------- Example code: <form method="post" action="http://example.com/multi/sub/" name="form"> <input type="submit" name="submit" value="Value" /> </form> multi.php: echo $_POST['submit'] Expected result: ---------------- Expected: $_POST['submit'] == "Value" Actual result: -------------- Blank. I think PHP associates the $_POST variable with /multi/sub when sub isn't a script/file. Instead the request is handled by multi. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Apache: Server version: Apache/1.3.29 (Darwin) httpd.conf: Inside the config for the site, you need to add: <Directory "/site/to/www"> Options MultiViews </Directory> PHP is configured as an apache mod. Version 4.3.4