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

Posted by Jerim on 07/25/07 19:10

On Jul 25, 1:52 pm, Michael Fesser <neti...@gmx.de> wrote:
> .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

Micha, thank you so much. I turned on global variables and it worked.
That should tell you how old the script is. I honestly hadn't given
much thought to how global variables worked or what it controlled; so
I learned something today. Thank you again.

 

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

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