#39789 [Opn->Fbk]: $_POST data not accessible

From: Date: Mon, 11 Dec 2006 14:56:17 +0000
Subject: #39789 [Opn->Fbk]: $_POST data not accessible
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106196@lists.php.net to get a copy of this message
ID: 39789 Updated by: iliaa@php.net Reported By: mpaige at ryanidirect dot com -Status: Open +Status: Feedback Bug Type: Unknown/Other Function Operating System: Windows 2003 /XP sp2 PHP Version: 5.2.0 New Comment: What is your variables_order set to? Previous Comments: ------------------------------------------------------------------------ [2006-12-11 14:50:43] mpaige at ryanidirect dot com I am behind the firewall on the 2003 box, and on my local developement copy there is no firewall. ------------------------------------------------------------------------ [2006-12-10 18:55:17] tony2001@php.net Disable all firewalls and make sure your browser actually send this data. ------------------------------------------------------------------------ [2006-12-10 18:52:53] mpaige at ryanidirect dot com Description: ------------ $_POST variable unavailable while $_GET is. Reproduce code: --------------- // FAIL: This returns -1 if(isset($_POST['senderName'])){ $msg = 1; } else { $msg = -1; } echo $msg; <form action="sendCard.php" method="POST"> <input name="senderName" value="" type="text" size="60" maxlength="60" /><br /> <input name="send" type="submit" /><br /> </form> If I change the from to GET and look for a GET // SUCCESS: This returns 1 if(isset($_GET['senderName'])){ $msg = 1; } else { $msg = -1; } echo $msg; <form action="sendCard.php" method="GET"> <input name="senderName" value="" type="text" size="60" maxlength="60" /><br /> <input name="send" type="submit" /><br /> </form> Expected result: ---------------- Both should return 1. Actual result: -------------- -1 on $_POST. INI is relatively untouched past standard dir paths and cgi redirect disable, no 3rd party extensions. looks like "#37276 problems witch $_POST array" but not fixed in windows... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=39789&edit=1

« previous php.bugs (#106196) next »