PHP/Design Patterns/Request Info

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

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

   <source lang="html4strict">

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


      </source>
   
  


The address of the page from which the request was made

   <source lang="html4strict">

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


      </source>
   
  


The full address of the request including query string

   <source lang="html4strict">

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


      </source>
   
  


Whether the request was GET or POST

   <source lang="html4strict">

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


      </source>