Lately I've been ruminating over how form submissions should be handled on the web. The only conclusion I've formed is that I can't come to a conclusion at all. I'd like to hear other's views on the subject and hopefully even learn of more possibilities.
Here are the options I've come across along with the drawbacks that I've recognized with each...
- Post form using a normal request and use server-side programming to return the form with errors or return a confirmation page.
- If you navigate back in your browser after successfully submitting the form you will resubmit the form.
- The values of other forms will not be retained after a form submission.
- Post form using a normal request and use server-side programming to return a redirect to the confirmation page.
- Difficult to handle errors
- The values of other forms will not be retained after a form submission.
- Post form using AJAX
- Doesn't work if JavaScript is disabled
- Difficult to handle file uploads
- Post form to an invisible iframe
- iframes are deprecated
I'm interested in hearing the opinions and suggestions of others based on their experiences with form submissions.



Reply With Quote




Bookmarks