[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
btw! if you use it inside a function, you need to declare it as global! Catalin > Are you sure the data is posted from HTML > through POST ? try adding the lines below: > > > $colors=""; > if(is_array($HTTP_POST_VARS) && !empty($HTTP_POST_VARS )) { > > foreach($HTTP_POST_VARS as $

[PHP] Re: Foreach POST VARS problem

2003-08-15 Thread Catalin Trifu
hi, Are you sure the data is posted from HTML through POST ? try adding the lines below: > $colors=""; if(is_array($HTTP_POST_VARS) && !empty($HTTP_POST_VARS )) { > foreach($HTTP_POST_VARS as $ThisVar=>$ThisVal){ > if(ereg("color-", $ThisVar) AND $ThisVal=="on" OR $Thi