Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$HTTP_POST_VARS question

Status
Not open for further replies.

GiffordS

Programmer
May 31, 2001
194
CA
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....
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top