RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-13 Thread Ford, Mike
: 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

RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread Ray
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

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread Michael Hulse
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

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread matt
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.

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread Michael Hulse
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

Re: [PHP] need for $_POST[''] changed after server upgrade

2005-12-12 Thread Robert Cummings
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

RE: [PHP] need for $_POST[''] changed after server upgrade

2005-12-11 Thread Matt Babineau
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]