Introduction to Forms
Learn how to use HTML forms in the application.
We'll cover the following
As an example of how to use HTML forms, we’ll create a user in the UI.
Form fields
Implementing a form submission is a multi-phase process:
- The browser uses
GET
to display the form. - The user enters information using the form elements.
- The browser uses
POST
with the form elements’ information. - If there are no validation errors, the browser gets redirected to avoid double submissions.
- If there are validation errors, the form remains in place so the user can correct the information.
The below diagram shows the success flow of the process.
Get hands-on with 1200+ tech skills courses.