You are here: Re: PHP doesn't allow me to manage forms « PHP Programming Language « IT news, forums, messages
Re: PHP doesn't allow me to manage forms

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

 

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

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