|
|
Posted by Olaf Schinkel on 05/20/07 09:00
Hello!
"Mr. Newt" <lektrikpuke@_yahoo.com> schrieb im Newsbeitrag
news:86SdndqCZaXAEtLbnZ2dnUVZ_oipnZ2d@comcast.com...
> Hi y'all,
>
> Is there a tutorial out there that shows how to write script that avoids
> using "register globals?"
>
> I'm doing lots of get and post commands and they seem to rely on globals,
> or am I wrong?
Do you mean, you use the G&P Variables direkt?
(username is a variable, that comes with get and post
(....index.php?username=blabla ...)
if ($username) == ....
and not
if ($_GET['username']
or
if ($_POST['username']
or for both
if ($_REQUEST['username']
Olaf
Navigation:
[Reply to this message]
|