: Sun, 11 Dec 2005 22:42:46 -0800
Subject: RE: [PHP] need for $_POST[''] changed after server upgrade
Register globals is no longer ON I believe. That is why it happened.
To fix this:
Foreach($_POST as $key = $value) ${$key} = $value;
That will convert all of your post variables
Babineau [EMAIL PROTECTED]
To: 'Ray' [EMAIL PROTECTED], php-general@lists.php.net
Date: Sun, 11 Dec 2005 22:42:46 -0800
Subject: RE: [PHP] need for $_POST[''] changed after server upgrade
Register globals is no longer ON I believe. That is why it happened.
To fix this:
Foreach($_POST as $key
On Dec 12, 2005, at 8:21 PM, Ray wrote:
Hello,
Thanks Matt, I appreciate your help. your solution is a lot easier
than mine.
It's also nice to understand what was happening. I was introduced to
PHP
after that type of globals were considered 'evil' so I hadn't seen code
written that way.
Ray
On Dec 12, 2005, at 8:21 PM, Ray wrote:
Hello,
Thanks Matt, I appreciate your help. your solution is a lot easier
than mine.
It's also nice to understand what was happening. I was introduced to
PHP
after that type of globals were considered 'evil' so I hadn't seen code
written that way.
On Dec 12, 2005, at 9:26 PM, [EMAIL PROTECTED] wrote:
The only problem I see with this is now you are asking php to issue a
count on the $_REQUEST array, this could take some time depending on
your
form size.
Ah, very good point... did not think of that. :)
--
PHP General Mailing List
On Tue, 2005-12-13 at 00:31, Michael Hulse wrote:
On Dec 12, 2005, at 9:26 PM, [EMAIL PROTECTED] wrote:
The only problem I see with this is now you are asking php to issue a
count on the $_REQUEST array, this could take some time depending on
your
form size.
Ah, very good point... did
Register globals is no longer ON I believe. That is why it happened.
To fix this:
Foreach($_POST as $key = $value) ${$key} = $value;
That will convert all of your post variables to local variables.
:)
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
7 matches
Mail list logo