Re: get names of vars $HTTP_POST_VARS?

From: Date: Fri, 09 Nov 2001 11:46:50 +0000
Subject: Re: get names of vars $HTTP_POST_VARS?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-74013@lists.php.net to get a copy of this message
RTFM HTTP_POST_VARS is an array, so you can iterate with forach: foreeach($HTTP_POST_VARS as $variableName => $variableValue){ echo "<P>In Variable $variableName you submitted: ".htmlentities($variableValue)."</P>\n"; } For further information go on http://www.php.net, there is a _very_ good documentation. (For this topic look at "array functions") Stefan Rusterholz, s.rusterholz@interaktion.ch ---------------------------------- interaktion gmbh Stefan Rusterholz Zürichbergstrasse 17 8032 Zürich ---------------------------------- T. +41 1 253 19 55 F. +41 1 253 19 56 W3 www.interaktion.ch ---------------------------------- ----- Original Message ----- From: "Vladimir Galkov" <galkov@kraft-s.ru> To: <php-general@lists.php.net> Sent: Friday, November 09, 2001 1:36 PM Subject: [PHP] get names of vars $HTTP_POST_VARS? > Good day! > Is there any way to get names of vars and values from $HTTP_POST_VARS if I > don't know their names and (ofcourse) values? (number can be taken from > count($HTTP_POST_VARS) ) ... > > This is nesesery to write a function wich write log of user's work with > remote filesystem. > Vladimir Galkov > galkov@kraft-s.ru > ICQ 84873967 > > > > -- > 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 (#74013) next »