Re: get names of vars $HTTP_POST_VARS?
| From: | Papp Gyozo | Date: | Sat, 10 Nov 2001 11:43:57 +0000 |
| Subject: | Re: get names of vars $HTTP_POST_VARS? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74098@lists.php.net to get a copy of this message | ||
array_keys($HTTP_POST_VARS);
http://www.php.net/manual/en/function.array-keys.php
----- Original Message -----
From: "Joffrey van Wageningen" <joffrey@playcollective.com>
To: <php-general@lists.php.net>
Sent: Friday, November 09, 2001 1:21 PM
Subject: Re: [PHP] get names of vars $HTTP_POST_VARS?
>
> a great way to debug things like this is to use var_dump or print_r...
>
> http://www.php.net/manual/en/function.var-dump.php
> http://www.php.net/manual/en/function.print-r.php
>
> <pre>
> <?php var_dump($HTTP_POST_VARS); ?>
> </pre>
>
> short and simple :)
>
> with kind regards,
> Joffrey van Wageningen
>
>
> On Fri, 9 Nov 2001, Hidayet Dogan wrote:
> > Or other way:
> >
> > while (list($key, $val) = each($HTTP_POST_VARS))
> > echo "$key = $val<br>\n";
> >
> > On Fri, 9 Nov 2001, Vladimir Galkov wrote:
> >
> > > Good day!
> > > Is there any way to get names of vars and values from $HTTP_POST_VARS if I
> > > don't know their names and (ofcourse) values? (number can be taken from
>
>
> --
> 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
>