Introduction to Forms

Learn how to use HTML forms in the application.

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:

  1. The browser uses GET to display the form.
  2. The user enters information using the form elements.
  3. The browser uses POST with the form elements’ information.
  4. If there are no validation errors, the browser gets redirected to avoid double submissions.
  5. 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 1000+ tech skills courses.