You are here: Re: POST, GET and SESSION « PHP Programming Language « IT news, forums, messages
Re: POST, GET and SESSION

Posted by Michael Fesser on 07/25/07 18:52

..oO(Jerim)

>I am working on some legacy code that has been through several hands
>over the years. The gist of it is that there is a "Register" button on
>our website, that goes to a redirect page, that then calls a page that
>displays our registration form. The URL the Register button uses
>includes passing a variable. For instance, lets say the URL is
>http://www.website.com/register.php?code=01
>
>The thing is that on register.php there is no POST, GET or SESSION
>anywhere. [...]

In older versions of PHP variables such variables were automatically
imported into the global scope. This was called register_globals.
Without any further action there would have been a global variable $code
with the value '01'.

In recent PHP this "feature" is disabled for security reasons, in PHP 6
it will be dropped completely.

Micha

 

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

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