I'm trying to track down a server migration problem with a site. These are third party servers so information that I have is sketchy at best. Here's the issue.
I have been using the following block of code for years on a site and it has worked beautifully....
Now, on the new server it doesn't work at all. I can't get PHP to recognize any form variables. The host swears that track_vars was enabled with the build, but I'm still a bit skeptical. PHP is running as a mod on this new server so there is no php.ini file to add it in anyway. What I'm wondering is if this is a version issue. I am migrating from php4.4 to php5.1.2. I know that $HTTP_POST_VARS is moving to $_POST, but that doesn't work in the above block either. Am I missing something?
I have been using the following block of code for years on a site and it has worked beautifully....
Code:
while(list($key, $value)=each($HTTP_POST_VARS))
{if($key>0 && $value!=null)
{$itemkey=$key;
$qty=$value;
etc.
Now, on the new server it doesn't work at all. I can't get PHP to recognize any form variables. The host swears that track_vars was enabled with the build, but I'm still a bit skeptical. PHP is running as a mod on this new server so there is no php.ini file to add it in anyway. What I'm wondering is if this is a version issue. I am migrating from php4.4 to php5.1.2. I know that $HTTP_POST_VARS is moving to $_POST, but that doesn't work in the above block either. Am I missing something?