You are here: Re: why do some HTTP headers show up in $_SERVER? Why not $_GET or $_POST ??? « PHP Programming Language « IT news, forums, messages
Re: why do some HTTP headers show up in $_SERVER? Why not $_GET or $_POST ???

Posted by John Dunlop on 11/18/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация