Information about Html Forms
A webform on a web page allows a user to enter data that is, typically, sent to a server for processing and to mimic the usage of paper forms.
Forms can be used to submit data to save on a server (e.g., ordering a product) or can be used to retrieve data (e.g., searching on a search engine).

A form in XHTML or HTML is by far the most common way to use a form online.
The following elements can make up the user-inputting portion of a form:
While client-side languages used in conjunction with forms are limited, they often can serve to do pre-validation of the form data and/or to prepare the form data to send to a server-side program.
The advantage of server-side over client-side is the concentration of functionality onto one computer (the server) instead of relying on each web browser implementing all of the various functions the same. This very problem is quite evident to any developer who writes JavaScript code for multiple browsers.
Scripting languages are the most common server-side programs used for web sites, but it is also possible to run compiled programs.
Some of the scripting languages commonly used: Some of the compiling languages commonly used:
A PHP script may:
form.html
form_handler.php
Perl CGIs were once a very common way to write web applications. But not being specifically designed for web development, Perl is now often viewed as less practical (both for developers and users) than specialized languages like PHP or ASP for that purpose, especially if Perl modules (some common ones being written in C) would need to be installed on the web host or if wanting to use a non-CGI environment that might require extra configurations on the web server. Some web hosts also rely on interpreter-level sandboxing, which while possibly doable with the Safe module, wouldn't be very practical and undoubtly break a lot of scripts considering common practices. Similar considerations might apply to other general-purpose scripting languages like Python or Ruby. For these reasons, a lot of cheap web hosts nowadays effectively only support PHP and web developers often seek compatibility with them.
A modern Perl 5 CGI using the standard CGI module with a form similar to the one above might look like:
form_handler.pl
More recent and secure scripts for emailing submitted forms include Jack's FormMail.php and nms formmail. In addition, remote hosting of form to email scripts by secure servers is an increasingly popular alternative. Remotely hosted form processing services such as EmailMeForm, FormBreeze and Mail My Form.com can offer many additional features (such as CAPTCHA systems) as well as security from hackers and spammers.
..... Click the link for more information.
..... Click the link for more information.
Scripting languages (commonly called script languages) are computer programming languages that are typically interpreted and can be typed directly from a keyboard.
..... Click the link for more information.
XHTML/HTML forms

Sample form rendered by Mozilla Firefox. (Click on image to find the source HTML code that generated this form.)
The following elements can make up the user-inputting portion of a form:
- input field
- text – a simple text box that allows input of a single line of text
- checkbox – a check box
- radio – a radio button
- submit – a button that tells the browser to take action on the form (typically to send it to a server)
- textarea – much like the text input field except a textarea allows for multiple rows of data to be shown and entered
- select – a drop-down list that displays a list of items a user can select from
- a text box asking for your name
- a pair of radio buttons asking you to pick your sex
- a select box giving you a list of eye colors to choose from
- a pair of check boxes to click on if they apply to you
- a text area to describe your athletic ability
- a submit button to send it to the server
Combined with programs
Forms can be combined with various scripting languages to allow developers to create dynamic web sites. This includes both client-side and/or server-side languages.Client-side
The de facto standard client-side scripting language for web sites is JavaScript. Utilizing JavaScript on the Document Object Model (DOM) leads to the method of Dynamic HTML that allows dynamic creation and modification of a web page within the browser.While client-side languages used in conjunction with forms are limited, they often can serve to do pre-validation of the form data and/or to prepare the form data to send to a server-side program.
Server-side
Server-side programs can do a vast assortment of tasks to create dynamic web sites — from authenticating a login through, for example, Lightweight Directory Access Protocol to retrieving and storing data in a database to spell checking to sending e-mail — quite unlike client-side programs. Most server-side program requests must pass through the web server's Common Gateway Interface to execute the program to actually perform the tasks.The advantage of server-side over client-side is the concentration of functionality onto one computer (the server) instead of relying on each web browser implementing all of the various functions the same. This very problem is quite evident to any developer who writes JavaScript code for multiple browsers.
Scripting languages are the most common server-side programs used for web sites, but it is also possible to run compiled programs.
Some of the scripting languages commonly used: Some of the compiling languages commonly used:
PHP
PHP is one very common language used for server-side languages used and is one of the few languages created specifically for server-side programs.A PHP script may:
- display the information on another page (ex: asking for a user's name and then displaying it on the web page)
- act as a log on interface
- post the data to a database (ex: mySQL, an ASCII file, etc.)
- store the information on the viewer's computer in an HTTP cookie
- generate an e-mail, either using the data or including said data in the e-mail's contents (possibly as an e-mail attachment)
form.html
>
form_handler.php
>
Perl
Perl is another language often used for web development. Perl scripts are traditionally used as Common Gateway Interface applications (CGIs) toward that end. In fact, Perl is such a common way to write CGIs that the two are often confused. CGIs may be written in other languages than Perl (compatibility with multiple languages is a design goal of the CGI protocol) and there are other ways to make Perl scripts interoperate with a web server than using CGI (such as FastCGI or Apache's mod perl).Perl CGIs were once a very common way to write web applications. But not being specifically designed for web development, Perl is now often viewed as less practical (both for developers and users) than specialized languages like PHP or ASP for that purpose, especially if Perl modules (some common ones being written in C) would need to be installed on the web host or if wanting to use a non-CGI environment that might require extra configurations on the web server. Some web hosts also rely on interpreter-level sandboxing, which while possibly doable with the Safe module, wouldn't be very practical and undoubtly break a lot of scripts considering common practices. Similar considerations might apply to other general-purpose scripting languages like Python or Ruby. For these reasons, a lot of cheap web hosts nowadays effectively only support PHP and web developers often seek compatibility with them.
A modern Perl 5 CGI using the standard CGI module with a form similar to the one above might look like:
form_handler.pl
>
#!/usr/bin/perl
use CGI qw(:standard);
$user = param('user');
print header;
print html(
body(
p("Hello, $user!"),
),
);
Form-to-email scripts
Among the simplest and most commonly needed types of server-side script is that which simply emails the contents of a submitted form. This kind of script is frequently exploited by spammer, however, and many of the most popular form-to-email scripts in use are vulnernable to be hijacked for spamming purposes. One of the most popular scripts of this type was "FormMail.pl" made by Matt's Script Archive. Today, no version of this still frequently used script is considered secure.More recent and secure scripts for emailing submitted forms include Jack's FormMail.php and nms formmail. In addition, remote hosting of form to email scripts by secure servers is an increasingly popular alternative. Remotely hosted form processing services such as EmailMeForm, FormBreeze and Mail My Form.com can offer many additional features (such as CAPTCHA systems) as well as security from hackers and spammers.
XForms
- Further information: XForms
External links
- Forms in HTML documents, the W3C's spec page for forms in HTML 4.
- Remotely hosted form processing systems
- Online tool for creating HTML form
A Web page or webpage is a resource of information that is suitable for the World Wide Web and can be accessed through a web browser. This information is usually in HTML or XHTML format, and may provide navigation to other web pages via hypertext links.
..... Click the link for more information.
..... Click the link for more information.
Server Computer
The inside/front of a server computer
Connects to:
..... Click the link for more information.
The inside/front of a server computer
Connects to:
- Internet via one of
..... Click the link for more information.
form is a document with spaces (fields) in which to write or select, for a series of documents with similar contents. The documents usually have the printed parts in common, possibly except for a serial number.
..... Click the link for more information.
..... Click the link for more information.
search engine is an information retrieval system designed to help find information stored on a computer system. Search engines help to minimize the time required to find information and the amount of information which must be consulted, akin to other techniques for managing
..... Click the link for more information.
..... Click the link for more information.
XHTML
File extension:
..... Click the link for more information.
File extension:
.xhtml, .xht, .html, ...... Click the link for more information.
HTML (Hypertext Markup Language)
File extension:
MIME type:
Type code: TEXT
..... Click the link for more information.
File extension:
.html, .htmMIME type:
text/htmlType code: TEXT
..... Click the link for more information.
A text box, text field or text entry box is a common element of graphical user interface of computer programs, as well as the corresponding type of widget used when programming GUIs.
..... Click the link for more information.
..... Click the link for more information.
In computing, a check box (checkbox, tickbox, or tick box) is a graphical user interface element (widget) that permits the user to make multiple selections from a number of options.
..... Click the link for more information.
..... Click the link for more information.
For information on radios, see .
A radio button or option button (sometimes improperly referenced as "radial button") is a type of graphical user interface widget that allows the user to choose one of a predefined set of options...... Click the link for more information.
button (sometimes known as a command button or push button) is a widget that provides the user a simple way to trigger an event, like searching for a query at a search engine, or to interact with dialog boxes, like confirming his actions.
..... Click the link for more information.
..... Click the link for more information.
drop-down list is a user interface control GUI element similar to a list box which allows the user to choose one value from a list. When a drop-down list is inactive it displays a single value.
..... Click the link for more information.
..... Click the link for more information.
A text box, text field or text entry box is a common element of graphical user interface of computer programs, as well as the corresponding type of widget used when programming GUIs.
..... Click the link for more information.
..... Click the link for more information.
For information on radios, see .
A radio button or option button (sometimes improperly referenced as "radial button") is a type of graphical user interface widget that allows the user to choose one of a predefined set of options...... Click the link for more information.
A combo box is a commonly-used GUI widget. It is a combination of a drop-down list or list box and a single-line textbox, allowing the user either to type a value directly into the control or choose from the list of existing options.
..... Click the link for more information.
..... Click the link for more information.
In computing, a check box (checkbox, tickbox, or tick box) is a graphical user interface element (widget) that permits the user to make multiple selections from a number of options.
..... Click the link for more information.
..... Click the link for more information.
button (sometimes known as a command button or push button) is a widget that provides the user a simple way to trigger an event, like searching for a query at a search engine, or to interact with dialog boxes, like confirming his actions.
..... Click the link for more information.
..... Click the link for more information.
graphical user interface (GUI) is a type of user interface which allows people to interact with a computer and computer-controlled devices which employ graphical icons, visual indicators or special graphical elements called "widgets", along with text, labels or text
..... Click the link for more information.
..... Click the link for more information.
A combutcon is an interface (between a user and computer) widget that integrates a button and a popup menu. It consists of a primary button and an arrow button that launches a popup menu when it is clicked.
..... Click the link for more information.
..... Click the link for more information.
A combo box is a commonly-used GUI widget. It is a combination of a drop-down list or list box and a single-line textbox, allowing the user either to type a value directly into the control or choose from the list of existing options.
..... Click the link for more information.
..... Click the link for more information.
Balloon help was a tooltips-type help system introduced by Apple Computer in their System 7 operating system release. The name referred to the way the help text was displayed, in "balloons", like those containing the words in a comic strip.
..... Click the link for more information.
..... Click the link for more information.
tree view or an outline view is a graphical user interface element (widget) that presents a hierarchial view of information. Each item (often called a branch or a node) can have a number of subitems. This is often visualized by indentation in a list.
..... Click the link for more information.
..... Click the link for more information.
grid view or a datagrid is a graphical user interface element (widget) that presents a tabular view of data. A typical grid view also supports some or all of the following:
..... Click the link for more information.
- Clicking a column header to change the sort order of the grid
..... Click the link for more information.
A JavaScript library is a library of pre-written JavaScript controls which allow for easier development of JavaScript-based applications, especially for AJAX and other web-centric technologies.
..... Click the link for more information.
..... Click the link for more information.
- Scripting redirects here. For other uses, see script.
Scripting languages (commonly called script languages) are computer programming languages that are typically interpreted and can be typed directly from a keyboard.
..... Click the link for more information.
A software developer is a person who is concerned with one or more facets of the software development process, a somewhat broader scope of computer programming or a specialty of project managing.
..... Click the link for more information.
..... Click the link for more information.
A website (alternatively, Web site or web site) is a collection of Web pages, images, videos or other digital assets that is hosted on one or several Web server(s), usually accessible via the Internet, cell phone or a LAN.
..... Click the link for more information.
..... Click the link for more information.
De facto is a Latin expression that means "in fact" or "in practice" but not spelled out by law. It is commonly used in contrast to de jure (which means "by law") when referring to matters of law, governance, or technique (such as standards), that are found in the
..... Click the link for more information.
..... Click the link for more information.
JavaScript
Paradigm: multi-paradigm
Appeared in: 1995
Designed by: Brendan Eich
Developer: Netscape Communications Corporation, Mozilla Foundation
Typing discipline: dynamic, weak, duck
Major implementations: SpiderMonkey, Rhino, KJS, JavaScriptCore
..... Click the link for more information.
Paradigm: multi-paradigm
Appeared in: 1995
Designed by: Brendan Eich
Developer: Netscape Communications Corporation, Mozilla Foundation
Typing discipline: dynamic, weak, duck
Major implementations: SpiderMonkey, Rhino, KJS, JavaScriptCore
..... Click the link for more information.
Document Object Model (DOM) is a platform- and language-independent standard object model for representing HTML or XML and related formats.
A web browser is not obliged to use DOM in order to render an HTML document.
..... Click the link for more information.
A web browser is not obliged to use DOM in order to render an HTML document.
..... Click the link for more information.
Dynamic HTML or DHTML is a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language
..... Click the link for more information.
..... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus