sourcecode

Saturday, June 30, 2012

GET v.s. POST

Head First PHP & MySQL
page 278

The difference between GET and POST isn’t just form vs. URL since GET
requests can (and often are) used to submit form data as well. The real
distinction between GET and POST has to do with the intent of a request.
GET is used primarily to retrieve data from the server without affecting
anything on the server. POST, on the other hand, typically involves
sending data to the server, after which the state of the server usually
changes somehow in response to the data that was sent.

 Another distinction is that data passed through a GET is visible in a URL,
while POST data is hidden, and, therefore, is a tiny bit more secure.

So... GET is good for bookmarks!
/***************END***********/

No comments: