Reply to Re: [PHP] Re: $_GET and $_POST arrays not working

Your name:

Reply:


Posted by "Matt Monaco" on 11/26/05 05:06

Well, I turned them off and it worked as it apparently should. It was just
a setting I read I had to make for globals to work the first time I install
PHP. I've made that change ever since.
I've always wondered why these variables - which I consider really
important, need to be turned on.

Matt

"John Nichel" <jnichel@by-tor.com> wrote in message
news:4387BE54.1030409@by-tor.com...
> Matt Monaco wrote:
>> I apologize, but I've never been able to access $_POST and $_GET in any
>> context whatsoever without first turning on the register globals.
>
> If you have a form like this one one page...
>
> <form action="page2.php" method="post">
> <input type="hidden" name="foo" value="bar" />
> <input type="submit" />
> </form>
>
> And this on page2.php...
>
> <?php
>
> echo ( $_POST['foo'] );
>
> ?>
>
> And the output on page2.php is not 'bar' when you submit the form,
> something is very wrong with your install.
>
> --
> By-Tor.com
> ...it's all about the Rush
> http://www.by-tor.com

[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

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