Sounds like $HTTP_POST_VARS is not a valid array (to check do if(is_array($HTTP_POST_VARS)) { print "YUP"; } else { print "NOPE"; })
Check to make sure that track_vars is turned on in the PHP.ini. "Lic. Carlos A. Triana Torres" <[EMAIL PROTECTED]> wrote in message 005901c16324$1cf252e0$0301a8c0@RED">news:005901c16324$1cf252e0$0301a8c0@RED... > Can some one help fix this error? > > Warning: Variable passed to each() is not an array or object in > /usr/local/.....test.php on line 14 > > Here is the line: > > while(list ($key, $mid) = each ($HTTP_POST_VARS)) { > > -- > Lic. Carlos A. Triana Torres. > Webmaster. Centro de Informacion y Gestion Tecnologica > Sancti Spiritus > Email: [EMAIL PROTECTED] > Tel: (53-41) 2 3956 > http://www.magon.cu > HamRadio: CO6TB > Locator: FL01GW > ICQ#: 137085816 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]