[PHP] Empty Post Variables
I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either through the $_REQUEST['VARIABLENAME'] or the $variablename format. Hitting the refresh button a couple of times seems to get the data into the variables, and other times it goes through on the first try. I can't be 100% sure, but it looks like other global variables like remote_user seem to get to the script without a problem when the post variables don't. Any help would be greatly appreciated. Trevor Shaw -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Empty Post Variables
I'll try that now. Trevor >>> Jay Blanchard<[EMAIL PROTECTED]> 3/11/2004 9:37:48 AM >>> [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either through the $_REQUEST['VARIABLENAME'] or the $variablename format. Hitting the refresh button a couple of times seems to get the data into the variables, and other times it goes through on the first try. I can't be 100% sure, but it looks like other global variables like remote_user seem to get to the script without a problem when the post variables don't. [/snip] Have you looked at $_POST['variablename'] ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Empty Post Variables
When the $variableName is empty so is the $_POST['variableName']. When the data gets to the script, it's available from either method of access. Trevor >>> Jay Blanchard<[EMAIL PROTECTED]> 3/11/2004 9:37:48 AM >>> [snip] I am running PHP / mySQL on Netware 6.5. I have an app that takes a data from an HTML form and inserts the data into a database. Unpredictably, however, the variables that should contain the post data are sometimes empty. Register Globals is set to on, and I can't access the data either through the $_REQUEST['VARIABLENAME'] or the $variablename format. Hitting the refresh button a couple of times seems to get the data into the variables, and other times it goes through on the first try. I can't be 100% sure, but it looks like other global variables like remote_user seem to get to the script without a problem when the post variables don't. [/snip] Have you looked at $_POST['variablename'] ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Empty Post Variables
Thanks to several people who replied. Yes, my initial tests confirm that this is a result of the IE post bug. Turning off HTTP_Keep_Alive in apache seems to have fixed the problem. Trevor >>> Richard Davey<[EMAIL PROTECTED]> 3/11/2004 9:42:04 AM >>> Hello Trevor, Thursday, March 11, 2004, 2:24:03 PM, you wrote: TS> Unpredictably, however, the variables that should contain the TS> post data are sometimes empty. Register Globals is set to on, and TS> Hitting the refresh button a couple of times seems to get the TS> data into the variables, and other times it goes through on the TS> first try. Sounds like the IE POST bug to me: http://support.microsoft.com/default.aspx?kbid=831167 -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php