RE: [PHP] Variable from the form
| From: | Dan Joseph | Date: | Mon, 30 Jun 2003 16:36:20 +0000 |
| Subject: | RE: [PHP] Variable from the form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153433@lists.php.net to get a copy of this message | ||
Hi,
> I'm getting result from the form. Are there any differences between
> using these 2 forms:
>
>
> $_POST['my_variable']
>
> or just
>
> $my_variable
>
> Is it more safety to use the first one?
You have to use the first one if you have register_globals set to off. If
you have it on, you can use either, however, the second is more insecure.
-Dan Joseph