RE: [PHP] form question

From: Date: Tue, 18 Jul 2000 18:58:54 +0000
Subject: RE: [PHP] form question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7123@lists.php.net to get a copy of this message
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. simple as phi. (in the example - the textfield would be $bar, and the submit button would be $go) (so you could check if $go is set in your script - to ensure that it is the form that has trigged the new script) Regards, -larsw- -- Lars Wilhelmsen <lw@ez.no>, developer @ eZ systems <www.ez.no> -----Original Message----- From: Martin A. Marques [mailto:martin@math.unl.edu.ar] Sent: 18. juli 2000 20:42 To: php-general Subject: [PHP] form question I have a form that calls another php script, and I need to know which variables the form passed to the new script to make a new query. Any idea? -- "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 (#7123) next »