Data KonceptsHTML Forms for FeedbackData KonceptsHTML Forms for Feedback![]() |
||||
![]() ![]() ![]()
This page provides an overview of HTML forms,
the means to receive feedback from your Web page viewers. FORMSForms are used to gather specific information from your Web page's visitors. As stated in the "So You Want To Have A Web Presence?" page, you can query for specific information relating to the interests of your readers as well as take sales orders from them. Forms were supported in the HTML 2.0 specification, however, they depended upon the underlying server to perform their magic. In addition, it normally takes a "serious" Web page generator to take the time to generate a form to collect information from his readers. Forms have not changed significantly in the advances to HTML4 -- except for their uses. Today, form elements are often used to display and update information, generally under the control of JavaScript, and they can be submitted via e-mail and PHP allows form responsed to be added to online databases. <FORM> ... </FORM>FORM AttributesThe FORM element can have three attributes: ACTION, METHOD, and ENCTYPE.
FORM ElementsThe FORM element can contain four elements defining the form's content: INPUT, SELECT, OPTION, and TEXTAREA. <INPUT>
<SELECT>The FORM <SELECT> element allows the user to choose one of a set of alternatives described by textual labels with these elements represented by the OPTION element. The SELECT element can take any of the four following attributes: ERROR, MULTIPLE, NAME, and SIZE.
<OPTION>The OPTION element can only be used within a SELECT element. It represents one choice and can take any of three attributes: DISABLED, SELECTED, and VALUE.
<TEXTAREA>This is a multi-line area of text, usually used to enter brief messages. You can specify the number of rows and columns in the TEXTAREA. Go back to: or take a look at: |
||||
|