IN THIS CHAPTER
Inserting a form
Text input boxes
Password input boxes
Large text input
Submit and reset buttons
Tab order and keyboard shortcuts
Fieldsets and legends
Using events with forms
Form scripts and script services
HTML's somewhat humble beginnings were send only; that is, the user could receive data sent from a Web server, but the server could not receive data sent from the user. This was quickly identified as a deficiency of HTML. Because most user agents were being run in graphical environments that included rich user interfaces, creating a similar interface to allow users to submit data back to a server seemed a natural extension.
Today, HTML forms present a complex yet flexible framework to allow users basic controls over data. These controls can be used to provide input back to scripts or to submit data. This chapter delves into the particulars of HTML forms.
HTML forms simply place a handful of GUI controls on the user agent to allow the user to enter data. The controls can allow text input and selection of predefined choices from a list, radio or check boxes, or other standard GUI controls.
After the data is entered into the fields, a special control is used to pass the entered data on to a program that can do something useful with it. Such programs are typically referred to as form handlers because they "handle" the form ...