Re: name and value tags in a form

From: Date: Sat, 12 Jan 2002 10:34:27 +0000
Subject: Re: name and value tags in a form
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-80279@lists.php.net to get a copy of this message
Hey, Did the trick. Thanks! Regards, Kunal Jhunjhunwala ----- Original Message ----- From: "Nick Wilson" <nick@explodingnet.com> To: "php-list" <php-general@lists.php.net> Sent: Saturday, January 12, 2002 3:30 PM Subject: Re: [PHP] name and value tags in a form > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * On 12-01-02 at 10:54 > * Kunal Jhunjhunwala said.... > > > Hi, > > Here is an example form field: > > > > Forgot Password Subject: <INPUT TYPE="TEXT" NAME="fname" > > SIZE="10" > > VALUE="kunal"> > > > > Now, I want my php script or get the field name, that is fname, and whatever > > the user entered, in this case kunal. I can easiuly get kunal by echoing > > $fname. But, how do i get what $fname is called :) I dunno how to explain. I > > want the field to get the field name automatically. > > You probably want to have a look at the $HTTP_POST_VARS (I think that's > it) array. See the manual under variables. > > HTH > - -- > > Nick Wilson > > Tel: +45 3325 0688 > Fax: +45 3325 0677 > Web: www.explodingnet.com > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE8QAk1HpvrrTa6L5oRAqfdAJ95ZALl/nmXRfNMo+pJxEsfElTPZACfSCa6 > 1j+W0FkdxLMYpwdeCGKkH0w= > =CXzK > -----END PGP SIGNATURE----- > > -- > 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 (#80279) next »