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 screen to allow the user to enter data. The controls can allow text input and selection of predefined options from a list, radio buttons 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 ...