#27389 [Fbk->Opn]: $_POST variables not accessible from multiview

From: Date: Thu, 26 Feb 2004 02:31:45 +0000
Subject: #27389 [Fbk->Opn]: $_POST variables not accessible from multiview
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55581@lists.php.net to get a copy of this message
ID: 27389 User updated by: vanlei at yahoo dot com Reported By: vanlei at yahoo dot com -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Mac OS X PHP Version: 4.3.4 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2004-02-25 05:56:33] sniper@php.net 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#55581) next »