Bug #16595 Updated: When PHP compiled as CGI - POST variables don't set
| From: | alm at chekushkin dot com | Date: | Sun, 14 Apr 2002 23:27:17 +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-4985@lists.php.net to get a copy of this message | ||
ID: 16595
Updated by: alm@chekushkin.com
Reported By: alm@chekushkin.com
-Status: Feedback
+Status: Open
Bug Type: HTTP related
Operating System: FreeBSD 4.5
PHP Version: 4.1.2
New Comment:
Sorry. I already solve my problem.
It was not PHP problem. It was Apache + mod_bandwidth problem.
Thank you
Previous Comments:
------------------------------------------------------------------------
[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