Documente Academic
Documente Profesional
Documente Cultură
A webform, web form or HTML form on a web page allows a user to enter data that is sent to
a server for processing. Forms are generally used for two purposes: data collection and
interactive communication. They are a way to submit information provided by
the user over HTTP.
A form consists of two distinct parts: the HTML code and the CGI program. HTML tags
create the visual representation of the form, while the CGI program decodes (or
processes) the information contained within the form.
There are two attributes within the <FORM> tag - ACTION and METHOD. The ACTION
attribute specifies the URL of the CGI program that will process the form
information. The METHOD attribute specifies how the server will send the form
information to the program. POST sends the data through standard input, while GET
passes the information through environment variables.
Single-line text input controls − This control is used for items that require
only one line of user input, such as search boxes or names. They are created
using HTML <input> tag.
Password input controls − This is also a single-line text input but it masks
the character as soon as a user enters it. They are also created using HTMl
<input> tag.
Multi-line text input controls − This is used when the user is required to
give details that may be longer than a single sentence. Multi-line input
controls are created using HTML <textarea> tag.
Checkbox Control
A checkbox creates square buttons (or boxes) that can be toggled on or off.
Checkboxes are used when more than one option is required to be
selected. They are also created using HTML <input> tag but type
attribute is set to checkbox..
Button Controls
There are various ways in HTML to create clickable buttons. You can also
create a clickable button using <input>tag by setting its type attribute
to button. The type attribute can take the following values −
1 Submit
2 Reset
3 Button
This creates a button that is used to trigger a client-side script when the
user clicks that button.
4 Image
Menus and scrolled lists are generally used to present a large number of options or
choices to the user.
Option menus and scrolled lists are created using the SELECT tag, which has an
opening and a closing tag.