Page 1 of 1

form methods

Posted: Wed Apr 23, 2003 2:28 pm
by nincha
the post method is common and can bee seen often, but what i rarely find is the get method. Can some one give me an example when this method is used

Posted: Wed Apr 23, 2003 2:59 pm
by Kriek
GET method takes information from the form and puts it in the URL being called by the action such as file.php?var=value which is classified as a query string. POST method does not put the information in the address bar but rather uses headers instead. On the same token in PHP you grab these accordingly with $_GET Variables provided to the script via HTTP GET. Analogous to the old $HTTP_GET_VARS array (which is still available, but deprecated) and $_POST Variables provided to the script via HTTP POST. Analogous to the old $HTTP_POST_VARS array (which is still available, but deprecated).

Posted: Wed Apr 23, 2003 4:07 pm
by m3mn0n
In this forum for example. :)
The & (and) symbol makes it possible to make more than one GET method as you can see. It's also handy in searches so the user always knows what query he/she just ran, Google and most others use it. In a few dozen other places also. Just never use it with secure datalike usernames/passwords.