How HTML Forms Work

Welcome to our free HTML tutorial. This tutorial is based on Webucator's Introduction to HTML Training course.

Contact Us or call 1-877-932-8228
How HTML Forms Work

How HTML Forms Work

HTML forms are used for submitting data back to a script on the server for data processing. When a form is submitted, the data in the form fields is passed to the server in the form of name-value pairs. Server-side scripts, which can be written in several different languages, are used to process the incoming data and return a new HTML page to the browser. The page returned to the browser could be anything from a "Thank you for registering" message or a list of search results generated from a database query.How the Web Works Diagram

The form processing occurs in the following sequences:

  1. The user fills out the form and submits the form data using a "submit" button.
  2. The data is sent to the web server.
  3. A script on the web server processes the form, possibly interacting with the file system, one or more databases, a mail server, or any number of other applications.
  4. The script generates an HTML page, which the server returns to the client for display.
Next

This tutorial is based on Webucator's Introduction to HTML Training Course. We also offer many other HTML Training courses. Sign up today to get help from a live instructor.