From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.5
PHP version:      4.1.2
PHP Bug Type:     *General Issues
Bug description:  When PHP compiled as CGI - POST variables don't set

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 bug report at http://bugs.php.net/?id=16595&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16595&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16595&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16595&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16595&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16595&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16595&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16595&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16595&r=submittedtwice

Reply via email to