INPUT Form Type: TEXT Illustrated with Attributes.The form TYPE attribute sets the type of field for INPUTs. There are a number of types you may wish to use, including: text, password, checkbox, radio, submit button, reset button, buttons and images. On this page I will demonstrate the INPUT TEXT field, which is the default field if you do not specify the type attribute. Other INPUT fields will be demonstated on another page. I illustrate various attributes which can be used with input files and show how to place labels for the form fields. In all of these examples, I have the code used to produce a form, followed by the resulting form. In each case, the form data is sent to be processed by a CGI script at: http://webdevfoundations.net/scripts/formdemo.asp This script returned the data entered for the form transmitted, associated with the form name field. Unfortunately this script may not be operational. Sorry, if this is the case, but you can still fill out the form fields and submit data.
Attributes That May be Specified Include:
NAME Attribute:
VALUE Attribute:
These fields have different sizes. Use size to override the default size of 20 characters. This field has the maxlength set to ten. Although the field size is actually 30 characters long, you can not type past the tenth character. Try it.
Form Labels For Text Boxes: You may be wondering how to indicate to the user what should be typed into these form fields. Just enter text between the <input ... tags as follows:
|
Last updated on 02/09/2009 by L.M. Hicks