Simply put, GET variables are those passed by a form with method="get" or no method, while POST variables are those passed by a form with method="post".
On a lower level, GET and POST are two different ways of sending data in HTTP. GET requests pass the data via the resource string. This can be seen in URLs such as
Code:
http://www.dynamicdrive.com/forums/showthread.php?p=44204
and translates to the HTTP query (in HTTP 1.1):
Code:
GET /forums/showthread.php?p=44204 HTTP/1.1
Host: www.dynamicdrive.com
The same data sent by POST, however, would not be indicated in the URL. POST data is embedded in the request, and is therefore more flexible (GET can only send ASCII characters, and escaping all the non-ASCII characters could result in a 3x data size increase). Sending the same data by POST would translate into the following (skeleton) HTTP query:
Code:
POST /forums/showthread.php HTTP/1.1
Host: www.dynamicdrive.com
Content-Type: x-www-form-urlencoded
Content-Length: 7
p=44204
Bookmarks