Re: form question

From: Date: Tue, 18 Jul 2000 23:14:43 +0000
Subject: Re: form question
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-7169@lists.php.net to get a copy of this message
You can loop through the $HTTP_POST_VARS array and use variable variables. while (list($key,$value) = each($HTTP_POST_VARS) { //$$key will be the all variables that you don't know } Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 Phone : (904) - 226-8979 URL : http://www.datadrivendesign.com URL : http://www.rossidesigns.net ----- Original Message ----- From: "Martin A. Marques" <martin@math.unl.edu.ar> To: <php-general@lists.php.net> Sent: Tuesday, July 18, 2000 3:04 PM Subject: RE: [PHP] form question > On Tue, 18 Jul 2000, Lars Wilhelmsen wrote: > > Hi. > > > > Let's take an example form: > > > > <form action="foo.php4" method="post"> > > <input type="text" name="bar"> > > <input type="submit" name="go" value="Go!"> > > </form> > > > > Ok... when this form is submitted, you can access all the fieldinformation > > in php by taking the name you've placed in name="" and place a $ in front > > of it. > > Actually I happen to know that. Maybe I didn't explain my problem correctly. > The form is generated dynamically, so I don't know the name of the variables > on the INPUTs which are checkboxes. This form calls another php script which > gets the variables of these input checkboxes. > How do I know the name of those variables? > > Thanks!! > > -- > "And I'm happy, because you make me feel good, about me." - Melvin Udall > ----------------------------------------------------------------- > Martín Marqués email: martin@math.unl.edu.ar > Santa Fe - Argentina http://math.unl.edu.ar/~martin/ > Administrador de sistemas en math.unl.edu.ar > ----------------------------------------------------------------- > > -- > 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 (#7169) next »