Form: Get or Post?

When to use GET

GET is best suited for short amounts of data. Size limitations are set in your browser. This is the default method and can be used if the form submission is passive (like a search engine query), and without sensitive information. Using the GET method will allow the form data to be visible in the page address bar (where the URL goes):

http://www.w3schools.com/html/action_page.php?firstname=Mickey&lastname=Mouse

When to use POST

POST should be used if the form is updating data, or includes sensitive information, like a password. POST offers better security because the submitted data is not visible in the page address bar.

http://www.w3schools.com/html/action_page.php?firstname= {blank} &lastname= {blank}
Back button Table of Contents Next button