Processing Buttons

The HTML forms specification supports only two types of buttons. Almost all forms, including all the forms you create in this chapter, have a submit button. Submit, as its name implies, instructs the browser to submit the form fields to a Web server.

Tip

Most newer browsers actually require no submit button at all, and force a submit if the Enter (Windows) or Return (Mac) key is pressed.

The second supported button type is reset. Reset clears all form entries and restores default values if any existed. Any text entered into <input type="text"> or <textarea> fields is cleared, as are any check box, list box, and option button selections. Many forms have reset buttons, but you never need more than one.

On the other hand, you ...

Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.