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

From: Date: Sun, 14 Apr 2002 22:41:26 +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-4978@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: Feedback -Bug Type: *General Issues +Bug Type: HTTP related Operating System: FreeBSD 4.5 PHP Version: 4.1.2 New Comment: Which Apache version is it? Previous Comments: ------------------------------------------------------------------------ [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 (#4978) next »