php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16595 When PHP compiled as CGI - POST variables don't set
Submitted: 2002-04-14 04:03 UTC Modified: 2002-04-14 19:28 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: alm at chekushkin dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.1.2 OS: FreeBSD 4.5
Private report: No CVE-ID: None
 [2002-04-14 04:03 UTC] alm at chekushkin dot 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>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-14 18:41 UTC] sniper@php.net
Which Apache version is it?

 [2002-04-14 19:27 UTC] alm at chekushkin dot com
Sorry. I already solve my problem.

It was not PHP problem. It was Apache + mod_bandwidth problem.

Thank you
 [2002-04-14 19:28 UTC] sniper@php.net
Bogus then. Thanks for letting us know..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 20:01:28 2024 UTC