Web form

from Wikipedia, the free encyclopedia

A web form is a form on a web page that collects data that is sent to a web server for processing . They can be found, for example, in webmail applications, search engine input fields, in social networks or on login pages. The data are sent using 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:

HTML5 allows other types of input fields, which often differ from the single-line input field only in terms of their semantics :

  • Phone numbers
  • Email address
  • Range selection (English: range slider )
  • Date picker
  • Comboboxes

Advanced widgets

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

Some typical web frameworks for this purpose are:

use

In addition to search engines and web mailers, there are also online shops that offer forms for correcting address and account data. Even web forms for ordering are newsletters , for personalization or uploading of files used. Forms are used to communicate without specifying an e-mail address . For example , spam can be largely excluded by captchas . In principle, every page that shows a radio, checkbox or button element is a web form.

example

Sample output of a simple web form.

The following HTML source text integrates a Wikipedia search into the corresponding part of the website .

<form action="http://de.wikipedia.org/wiki/Spezial:Suche">
  <fieldset>
    <legend>Suchen</legend>
    <input type="text"   name="search" value="" />
    <input type="submit" name="go" value="Artikel"/>
    <input type="submit" name="fulltext" value="Volltext" />
  </fieldset>
</form>

Web links