RE: [PHP] HTTP_POST_VARS is not recognised

From: Date: Mon, 28 Aug 2000 11:25:54 +0000
Subject: RE: [PHP] HTTP_POST_VARS is not recognised
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13925@lists.php.net to get a copy of this message
Two possibilities I can think of: 1/ It is not enabled, see php.ini 2/ You're using it inside a function and haven't 'declared it as global'. cheers - Jason Wong Digital View Ltd 2201 Nanyang Plaza 57 Hung To Road Kwun Tong HONG KONG Tel: +852-2861-3615 Fax: +852-2520-2987 www.digitalview.com > -----Original Message----- > From: Manas [mailto:bhatt_manas@hotmail.com] > Sent: 28 August 2000 18:57 > To: php-general@lists.php.net > Subject: [PHP] HTTP_POST_VARS is not recognised > > > Hi, > I am trying to write some simple application php3 but when I trying > to extract values from the form using the following statement :-- > while(list($name,$value)=each($HTTP_POST_VARS)): > ---- > ----- > I get the following error:-- > Warning: Variable passed to each() is not an array or object. > The only reason which I can think of is that the HTTP_POST_VARS is not > defined. But the installation states that the if the the php3 module > gets embedded in the apache module, then all the php variables are > created. Since HTTP_POST_VARS is a php variable it must also > be defined. > > Can anybody clarify my doubt. > Thanks in advance. > Manas > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#13925) next »