RE: [PHP] Forms...
| From: | Daniel Kushner | Date: | Fri, 16 May 2003 15:05:29 +0000 |
| Subject: | RE: [PHP] Forms... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147902@lists.php.net to get a copy of this message | ||
foreach($_POST as $var => $val) {
echo "$var: $val <br>";
}
Regads,
Daniel Kushner
Vice President, New York PHP
http://nyphp.org/
daniel@nyphp.org
> -----Original Message-----
> From: Russell P Jones [mailto:rjones@email.unc.edu]
> Sent: Friday, May 16, 2003 11:03 AM
> To: php-general@lists.php.net
> Subject: [PHP] Forms...
>
>
> Is there any easy way to develop an array of the form values that were
> posted to a php script...
>
> as in. say we had a person fill out their $name, $email, and $phone in
> this order. Can
> we make a script that picks up every variable in the order that it was
> posted from the form such that $formvariables[0] would yield Russ Jones,
> or $formvariable[1] would yield rjones@email.unc.edu ??? I need to figure
> out how to do this regardless of the name and number of variables, such
> that I could have numerous different forms with different values and
> different variables all point to the same php script used to process that
> form.
>
> Russ
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php