ID: 27389 Updated by: [EMAIL PROTECTED] Reported By: vanlei at yahoo dot com -Status: Open +Status: Feedback Bug Type: Apache related Operating System: Mac OS X PHP Version: 4.3.4 New Comment:
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. Apache version, how to configure httpd.conf, how PHP is configured (module/cgi), etc. Previous Comments: ------------------------------------------------------------------------ [2004-02-24 23:55:29] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27389&edit=1
