How should I choose between GET and POST methods in HTML forms?

To choose between them I use this simple rule:

GET for reads. (reading data and displaying it)

POST for anything that writes (i.e updating a database table, deleting an entry, etc.)

The other consideration is that GET is subjected to the maximum URI length and of course can’t handle file uploads.

This page has a good summary.

Leave a Comment