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

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

2005-12-11 Thread Ray
Hello All, We just upgraded our server at work, and one client's web site stoped working. I didn't write the code, I just get to clean up someone else's mess. :) After a little troubleshooting, I found that forms refered back to the same script. so far, so good. very normal. The strange part was

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

2005-12-11 Thread Matt Babineau
://www.criticalcode.com TAKE ORDERS from the WEB and add them right into QUICKBOOKS! Ask me how... -Original Message- From: Ray [mailto:[EMAIL PROTECTED] Sent: Sunday, December 11, 2005 10:29 PM To: php-general@lists.php.net Subject: [PHP] need for $_POST[''] changed after server upgrade Hello All