Form (HTML)

A web form on a web page is a form for collecting data to be sent for processing to a web server. They can be found for example in webmail applications, search input fields, in social networks or on login pages. The sending of the data runs via the Hypertext Transfer Protocol via HTTP GET, HTTP POST, or the XMLHttpRequest ( Ajax).

Possible selection fields

The following input fields are provided in the HTML 4 standard:

  • Single-line text entry field ( for free text)
  • Password field ( input is masked output on the screen )
  • Multi-line text input field ( textarea )
  • Select lists ( drop down list )
  • Radio buttons ( select one option from several )
  • Checkboxes ( multiple selections )
  • Fields for file upload
  • Hidden form fields (for example, session IDs )
  • Click buttons, this includes the confirmation button ( submit ) or a button to reset all entries

HTML5 allows other types of input fields, which often differ for single-line input field only by their semantics:

  • Phone numbers
  • E -mail addresses
  • Range selection (English: range slider )
  • Date Picker
  • Combo boxes

Advanced widgets

By using client-side technologies such as JavaScript, many web frameworks include advanced input options. These include widgets such as sliders, calendar boxes, combo boxes, or drag and drop fields.

The following web frameworks and standards are available for this purpose:

  • FormEngine - specialized form framework for easy implementation on an application server
  • Apache Wicket - web framework as a basis for the development of Web applications on an application server
  • JavaServer Faces - web framework as a basis for the development of Web applications on an application server

Use

In addition to search engines and webmail there are the online shops that offer forms for the correction of address and account information. Also, web forms for subscription to newsletters, for the personalization or uploading files can be used. Forms can be used to perform communication without an indication of an e- mail address. This spam can be excluded, for example, by CAPTCHAs. In principle, any page that displays a radio, checkbox or button element, a web form.

Example

  • Web forms on Selfhtml.org
  • Internet
342721
de