ID: 28514 User updated by: john at odlin dot co dot uk Reported By: john at odlin dot co dot uk -Status: Feedback +Status: Open Bug Type: HTTP related Operating System: Linux RH PHP Version: 4.3.6 New Comment:
gpc_order GPC variables_order GPCS Previous Comments: ------------------------------------------------------------------------ [2004-05-25 17:50:14] [EMAIL PROTECTED] What are the values or your gpc_order and variables_order INI settings? ------------------------------------------------------------------------ [2004-05-25 04:36:33] john at odlin dot co dot uk Description: ------------ POST variables don't get set if get called from a page that includes http:// in the action but GET works fine. Apache/1.3.20 Sun Cobalt (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6b PHP/4.3.6 mod_auth_pam_external/0.1 FrontPage/4.0.4.3 mod_perl/1.25 using recommended ini file. './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gettext=/usr' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-ttf' '--with-db' '--with-gdbm' '--enable-mbstring' '--enable-wddx=shared' '--enable-xml' '--enable-ftp' '--disable-debug' '--with-libdir=/usr/lib' '--with-pgsql=shared' '--with-pdflib=shared' '--enable-inline-optimization' '--with-openssl' '--enable-bcmath' '--enable-sockets' Reproduce code: --------------- <FORM ACTION="" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> <FORM ACTION="/index.php" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> <FORM ACTION="http://www.domain.com/index.php" METHOD="POST"> <INPUT TYPE="TEXT" NAME="transId" VALUE="" SIZE="10"> <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> </FORM> The third example does not work. Expected result: ---------------- Array ( [HTTP_POST_VARS] => Array ( [transId] => 1 [submit] => Submit ) [_POST] => Array ( [transId] => 1 [submit] => Submit ) ... Actual result: -------------- Array ( [HTTP_POST_VARS] => Array ( ) [_POST] => Array ( ) ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28514&edit=1