Re: Getting Values from forms
| From: | Bobby Patel | Date: | Fri, 16 May 2003 04:38:02 +0000 |
| Subject: | Re: Getting Values from forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147854@lists.php.net to get a copy of this message | ||
It doesn't (really) have to be because of the newer version of PHP. What has
happened is that the older version had register_globals set to on, where as
the new one has it set to off.
It's more secure to have register_globals set to off, so I would suggest to
always access the variables from $_POST (or $HTTP_POST_VARS for older
PHP)array.
Also for reference you might want to read up on why register_globals set to
on is a bad thing, don't know the URL off by heart but I'm sure you can find
it through searching through PHP.net or maybe someone can post it.
"Steven Farrier" <webmaster@xke.com> wrote in message
news:3747577.1053015233@localhost...
> When I use POST in a form how do I get those values from PHP. I could do
it
> before by just using the field name. But now I have changed web server
> provider which has a newer version of PHP. Can anyone tell me how I can do
> this?
>
> Steve