Foreach POST VARS problem

From: Date: Fri, 15 Aug 2003 18:01:43 +0000
Subject: Foreach POST VARS problem
Groups: php.general 
Request: Send a blank email to php-general+get-159736@lists.php.net to get a copy of this message
It seems to me that this used to work but I guess something has changed somewhere between PHP 4.2 and 4.3? I am running PHP 4.3.2 as an Apache DSO on an FBSD box. If it is not obvious, I am trying to parse checkbox form POST results as seen below: $colors=""; foreach($HTTP_POST_VARS as $ThisVar=>$ThisVal){
       if(ereg("color-", $ThisVar) AND $ThisVal=="on" OR $ThisVal==1){
           $newVarA=explode("-", $ThisVar);
           $colors.="$newVarA[1]:";
           }
       }
*Warning*: Invalid argument supplied for foreach() in */devda1/htdocs/2binteractive.com/htdocs/0new/content/lanskyShopAdmin.php* on line 2 I guess I just need to know what this variable name has been changed to. I searched the PHP.NET manual for $HTTP_POST_VARS and got no results. Thanks in advance & sorry for the dumb question.. Kris

« previous php.general (#159736) next »