RE: [PHP] enumerating fields from a form

From: Date: Thu, 27 Jul 2000 04:36:44 +0000
Subject: RE: [PHP] enumerating fields from a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8474@lists.php.net to get a copy of this message
This will display all the variables from your form: while(list($duck, $goose) = each($HTTP_POST_VARS)) { echo "Field name $duck equals $goose<br>\n"; } Or you could just do: echo $HTTP_POST_VARS['Title']; David -----Original Message----- From: root@one.net [mailto:root@one.net]On Behalf Of Sam Carleton Sent: Wednesday, July 26, 2000 11:23 PM To: php-general Subject: [PHP] enumerating fields from a form I am new to PHP. I have a form with a tag name of Title, thus I would think that $Title would allow me to get to the value the user entered in the form. Things are not happening that way, though:( Is there some way I can enumerate through all the variables and get the names of the variables so I can see where I have made my mistake? Sam

« previous php.general (#8474) next »