note 60474 deleted from ref.mail by nlopess
| From: | nlopess@php.net | Date: | Sun, 08 Jan 2006 11:38:02 +0000 |
| Subject: | note 60474 deleted from ref.mail by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101395@lists.php.net to get a copy of this message | ||
Note Submitter: Alexey mail at real dot ua
----
In Tim's excellent code on this page there is one thing, which did not work for me:
// Make sure the form was indeed POST'ed:
// (requires your html form to use: action="post")
if(!$_SERVER['REQUEST_METHOD'] == "POST"){
die("Forbidden - You are not authorized to view this page");
exit;
}
I changed it like this:
if(!($_SERVER['REQUEST_METHOD'] == "POST")){
die("Forbidden - You are not authorized to view this page");
exit;
}
and it started to catch what it was intended to catch. I added one pair of brackets.