|
Posted by Michael Trausch on 01/07/06 23:43
Village wrote:
>
> Brilliant, that works fine. Thanks. I will look up about the Register
> Globals thing to see what it is.
>
A good bit of advice: Don't use, nor rely on, register globals. That
functionality is going away in the future, according to the PHP web
site, I think it's slated for removal entirely in PHP 6.
Use the Superglobals instead. Some of the common ones are $_GET,
$_POST, and $_COOKIE. There are others, also. It's definitely
preferable to use them, however, because with register globals (just as
an example), let's say you have a POST form with a hidden value UID and
the user wanted to attempt to override it with a GET request appending
UID to the URL. The opposite could also be true, but not as likely.
The idea is that by using the superglobals, everything is separated into
different places, and it makes life somewhat more secure, easier, and
more intuitive to deal with.
You should get a book on PHP 5. :)
Later,
Mike
[Back to original message]
|