Re: Grabbing ALL $_POST var at once.
| From: | Kevin Stone | Date: | Mon, 06 May 2002 19:07:19 +0000 |
| Subject: | Re: Grabbing ALL $_POST var at once. | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96309@lists.php.net to get a copy of this message | ||
Do you simply need to view all of the values passed through the form? In
that case try something like..
foreach ($_POST as $name => $value)
{
echo $name." : ".$value."<br>";
}
-Kevin
----- Original Message -----
From: "David J Jackson" <david.j.jackson@pickledbeans.com>
To: "1LT John W. Holmes" <holmes072000@charter.net>
Cc: <php-general@lists.php.net>
Sent: Monday, May 06, 2002 1:07 PM
Subject: Re: [PHP] Grabbing ALL $_POST var at once.
> John ---
> Thanks for your reply, but let me rephase the question.
> Let say I have a form with 50 fields on it do I have to:
>
> echo $_POST['one']
> ....
> .....
> .....
> echo $POST['fifty']
>
>
> Or should I, could I use extract()?
>
> Thanks in advance,
> David
>
> p.s I said it was UGLY :)
>
>
> > ?>
> >
> > If that's too hard to understand, use extract().
> >
> > ---John Holmes...
> >
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>