Reply to Re: Help with register_globals on

Your name:

Reply:


Posted by J.O. Aho on 11/11/06 08:36

affiliateian@gmail.com wrote:
> We moved web hosts recently and had to use htaccess to turn on Register
> Global to ensure that a few of our old scripts worked properly.
>
> php_flag register_globals on
>
> If we were to turn this off, how do we make PHP recognize a hidden tag
> from a form?
>
> Originally, our PHP script could recognize a hidden field via:
>
> if ($variable == "yes")

It depends on what way you method for the form (get/post),

Post:
if($_POST['variable'] == "yes")

Get:
if($_GET['variable'] == "yes")

If you don't know/care or allow different methods:
if($_REQUEST['variable'] == "yes")


For more information about reserved variables, see
http://www.php.net/manual/en/reserved.variables.php


//Aho

[Back to original 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

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