Bug #16595 Updated: When PHP compiled as CGI - POST variables don't set

From: Date: Sun, 14 Apr 2002 23:28:21 +0000
Subject: Bug #16595 Updated: When PHP compiled as CGI - POST variables don't set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4986@lists.php.net to get a copy of this message
ID: 16595 Updated by: sniper@php.net Reported By: alm@chekushkin.com -Status: Open +Status: Bogus Bug Type: HTTP related Operating System: FreeBSD 4.5 PHP Version: 4.1.2 New Comment: Bogus then. Thanks for letting us know.. Previous Comments: ------------------------------------------------------------------------ [2002-04-14 19:27:17] alm@chekushkin.com Sorry. I already solve my problem. It was not PHP problem. It was Apache + mod_bandwidth problem. Thank you ------------------------------------------------------------------------ [2002-04-14 18:41:26] sniper@php.net Which Apache version is it? ------------------------------------------------------------------------ [2002-04-14 04:03:02] alm@chekushkin.com When PHP compiled as CGI for Apache - POST variables don't set. ./configure --prefix=/usr --with-config-file-path=/etc/httpd/conf --enable-force-cgi-redirect --with-mysql=/usr/local --with-gd --with-pgsql=/usr I cannot access to it by $_POST['field_name'] or $HTTP_POST_VARS['field_name'] or $field_name. Script example index.php -------------------- <?php print $HTTP_POST_VARS['username']."<br>"; print $_POST['username']."<br>"; print $username."<br>"; ?> <form action="index.php" method="POST"> <input type="text" name="username" value="alex"> <input type="submit" value="Send"> </form> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16595&edit=1

« previous php.bugs (#4986) next »