When to use GET or POST
The HTML 2.0 specification says, in section Form Submission (and the HTML 4.0 specification repeats this with minor stylistic changes):
–>If the processing of a form is idempotent (i.e. it has no lasting observable effect on the state of the world), then the form method should be GET. Many database searches have no visible side-effects and make ideal applications of query forms. — –>If the service associated with the processing of a form has side effects (for example, modification of a database or subscription to a service), the method should be POST.
|