November 12, 2003

Post and Get

One of the most common confusion points is whether to use the method of post or get for form submission. Normally a default of post is best however if you need the reasons.

It is best to use the POST method when there are desired outcomes of the action. For instance adding the data to the db, or setting the form values to session or request scoped variables. Also if you are wary of the length of the url and query string exceeding 1024 with the form fields. Otherwise use the GET method, but the form submission information will be appended to the url.

Posted by Elyse at November 12, 2003 6:51 PM