You are here: Re: Register Globals « PHP Language « IT news, forums, messages
Re: Register Globals

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация