This form uses the "Get" method so that the form fields are passed as "Querystring"
parameters, and you can see what they are.
It calls "styledemo.htm", which looks for a querystring parameter named "css".
The parameter value is a style sheet name (without the extension ".css").
This form asks for the same information six ways.
The field types demonstrated on the form are:
Selection List (with size set to 4). The selection list provides built-in
field validation because only the listed options can be selected. The default is explicitly set to "Winter" by specifying selected="selected" in the Option tag for Winter.
Input box (size=30) - Note that there is no built-in validation for a text
field. The user can type anything. JavaScript could be used to provide
validation, or to convert a value to all lowercase (or all uppercase)..
Radio Buttons - Once one of the buttons has been selected, they can't all be turned off, unless the form has some kind of option for the concept of "never mind"
Checkboxes - Normally, each checkbox is a different field. There is no way, short of Javascript, to make sure that only one box is checked. But, unlike Radio Buttons, it is easy, even without Javascript, to uncheck all options.
Buttons. Buttons have values, like other form fields. Like radio buttons, values are embedded in
Submit buttons and selected by the user, not entered-free form. Unlike radio buttons, the value of buttons are exposed as the text within the button.
Command buttons, which don't submit the form, could be used, but would require
JavaScript code that sets a hidden field, since Command button values don't get
passed to the action script.
A multiline text, or "textarea" field. The default value is the free text in the <textarea> element in the HTML page. In this example, the whitespace formatting of the HTML page causes a tab to be embedded in the field value, making it look kind of like the default value is centered.
Note that, without Javascript, there is no way to control which field puts
its value in the "css" parameter, other than to edit the file to make sure that
only the desired field has the fieldname "css".