markhutch
-
Posts
2 -
Joined
-
Last visited
Posts posted by markhutch
-
-
It's been a while since I coded PHP so I'm more than happy to admit I've made a newbie mistake somewhere - but I don't see where!
If I view the following in a browser I get everything I would normally expect:
Including:
_SERVER["REQUEST_METHOD"] GET
However, when I have the following code:
if ($_SERVER["REQUEST_METHOD"]=="POST") { ...
I get this error:
PHP Notice: Undefined index: REQUEST_METHOD in C:\Documents and Settings\Administrator\Local Settings\Application Data\ActiveState\KomodoIDE\6.1\samples\php_tutorials\guestbook.php on line 40
(The code above is line 40 of course
There are SOME $_SERVER values that I can access, like SCRIPT_NAME or PATH_TRANSLATED. Just not the ones I'm trying to access.
What am I missing?? This is being run on a freshly installed WampServer 2.2.
$_Server['request_Method'] Not In Index
in PHP Coding Help
Posted
I'm using Komodo 6. The file in question is one of its Tutorial files. I would have thought that it would be geared up to run. Maybe there's some magic setting I've not filled in correctly. Thanks for the info though.