Re: extract($_POST)
| From: | ed at home dot homes2see dot com | Date: | Tue, 22 Oct 2002 18:51:55 +0000 |
| Subject: | Re: extract($_POST) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120961@lists.php.net to get a copy of this message | ||
Cool! I'm going to add that to every script I need it in and turn the
register_globals to OFF.
Thanks,
Ed
On Tue, 22 Oct 2002, Rick Emery wrote:
> Yes, it's safe. To test it yourself, construct a form and name a variable MYVAR. Display
> and submit the form so that it passes to a .PHP script. Do extract($_POST) or
> extract($HTTP_POST_VARS), and print out the value of MYVAR
>
> ----- Original Message -----
> From: <ed@home.homes2see.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, October 22, 2002 1:25 PM
> Subject: [PHP] extract($_POST)
>
>
>
> Is it safe to assume then that it would be just as safe to use this
> command on existing scripts and call this function at the top of every
> page you would need to extract post variables from rather as
> opposed to rewriting the scripts to use the $_POST['var'] declaration?
>
> Ed
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>