Re: Re: Best way to test for form submission?
| From: | Ben Dunlap | Date: | Fri, 28 Aug 2009 16:33:44 +0000 |
| Subject: | Re: Re: Best way to test for form submission? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297433@lists.php.net to get a copy of this message | ||
I was surprised when no one recommended this:
if ($_SERVER['REQUEST_METHOD'] == 'POST')
So now I'm wondering if there's a pitfall to this method that I'm not
aware of...
Thanks,
Ben