|
Posted by John Dunlop on 09/26/89 11:44
lawrence k:
> Most of the AJAX calls I've seen are GET or POST, so I expect them to
> show up in the $_GET or $_POST arrays. Why would this header show up in
> the $_SERVER array?
GET and POST are just the names of two methods of sending an HTTP
request, not to be confused with the PHP variables of the same name.
The PHP variable $_GET makes available name=value pairs passed in the
query part of the request-URL (even if the actual method is POST), and
$_POST makes available name=value pairs passed in the body of the
request. $_SERVER, on the other hand, makes available some but not all
of the headers of the request.
http://www.php.net/manual/en/language.variables.predefined.php
HTH.
--
Jock
Navigation:
[Reply to this message]
|