Metoda GET


Aceasta pagina este un exemplu de utilizare a metodei GET intr-un formular.

Mare Mic

unu doi trei
Numele dvs?

Daca in formularul de mai sus s-a selectat "trei" iar in caseta Numele dvs s-a introdus Cornel, pagina generata la apasarea butonului va contine

AUTH_TYPE =
CONTENT_LENGTH = 0
CONTENT_TYPE =
GATEWAY_INTERFACE = CGI/1.1
PATH_INFO =
PATH_TRANSLATED =
QUERY_STRING = B2=Afisaza+variabilele+de+mediu&Mare_=CevaMare&Mic_=CevaMic&TA=Ceva+continut%0D%0Ape+mai+multe+linii&name1=1&name3=3&name=Cornel
REMOTE_ADDR = 10.1.1.1
REMOTE_HOST =
REMOTE_IDENT =
REMOTE_USER =
REQUEST_METHOD = GET
SCRIPT_NAME = /cgi-bin/display.pl
SERVER_NAME = cornel
SERVER_PORT = 80
SERVER_PROTOCOL = HTTP/1.0
SERVER_SOFTWARE = SAMBAR 4.3
HTTP_ACCEPT =
HTTP_ACCEPT_ENCODING =
HTTP_ACCEPT_LANGUAGE = en-us
HTTP_AUTHORIZATION =
HTTP_CHARGE_TO =
HTTP_FROM =
HTTP_IF_MODIFIED_SINCE =
HTTP_PRAGMA =
HTTP_REFERER = http://cpp/cgi_get.htm
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)

Cornel Mironel Niculae, 2003-2004

01-Mar-2004