How HTML Forms Work

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.

The process is as follows:

  1. The user submits a form. The data is sent to the web server.
  2. 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.
  3. The script generates an HTML page, which the server returns to the client for display.
Next