PHP/Design Patterns/Request Info

Материал из Web эксперт
Перейти к: навигация, поиск

For GET requests, the encoded data send appended to the URL

<?
echo getenv("$QUERY_STRING");
?>



The address of the page from which the request was made

<?
echo getenv("$HTTP_REFERER");
?>



The full address of the request including query string

<?
echo getenv("$REQUEST_URI");
?>



Whether the request was GET or POST

<?
echo getenv("$REQUEST_METHOD");
?>