From: vanlei at yahoo dot com Operating system: Mac OS X PHP version: 4.3.4 PHP Bug Type: Apache related Bug description: $_POST variables not accessible from multiview
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 bug report at http://bugs.php.net/?id=27389&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27389&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27389&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27389&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27389&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27389&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27389&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27389&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27389&r=support Expected behavior: http://bugs.php.net/fix.php?id=27389&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27389&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27389&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27389&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27389&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27389&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27389&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27389&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27389&r=float
