[PHP] bad programming?

2004-06-23 Thread Amanda Hemmerich
We just moved a bunch of code from one web hosting company to another. Now, one of the pages no longer works. I have been sort of starting from scratch, and the first line is still not working. Am I using something that I shouldn't be? Here is a code snippet: if ($REQUEST_METHOD=='POST') {

Re: [PHP] bad programming?

2004-06-23 Thread Matt Matijevich
[snip] The part that's not working is the $REQUEST_METHOD=='POST' line. [/snip] try $_SERVER['REQUEST_METHOD'] instead of $REQUEST_METHOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bad programming?

2004-06-23 Thread bbonkosk
Try: if ($_SERVER['REQUEST_METHOD'] == 'POST') and then read: http://us4.php.net/reserved.variables -Brad - Original Message - From: Amanda Hemmerich [EMAIL PROTECTED] Date: Wednesday, June 23, 2004 12:13 pm Subject: [PHP] bad programming? We just moved a bunch of code from one web