Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- lawrence k
April 7, 2006, 2:16 am
rate this thread
Re: why do some HTTP headers show up in $_SERVER? Why not $_GET or $_POST ???
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.