As Macbeth would have said "To GET or to POST , that is the question". The general consensus is :
- Use GET when you want to give the user the ability to bookmark a page (as all the data is held in the URL and does not rely on an existing session on the server.) The "get" method should be used when the form is idempotent (i.e., causes no side-effects).
- Use POST when a form causes side effects (for example, if the form modifies a database or subscription to a service).
Defined tags for this entry: geek stuff, programming
Comments
No comments