Chapter 10 – Form Basics
Forms are used for many purposes all over the Web. They are used by search engines to accept keywords and by online stores to process e-commerce shopping carts. Websites use forms to help with a variety of functions—accepting visitor feedback, encouraging visitors to send a news story to a friend or colleague, collecting e-mail addresses for a newsletter, and accepting order information. This chapter introduces a very powerful tool for web developers—forms that accept information from web page visitors. Resource websites and chapter links are listed below.
Free Remotely-hosted Form Processing
Privacy & Form Processing
CSS Attribute Selectors
Browser Support for HTML5 Form Controls
Server-side Script
The server-side script used in the chapter is written in PHP. View the source code.
Server-Side Technologies
Free Server-Scripts
Chapter Updates
- Page 335 Table 10.2
Note that the table entry for the value "file" should be deleted. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file for details about a form control for file upload.
- Page 353
In the first code sample on the page, please ignore the stray <h2> tag.
Questions or Comments
The author would like to hear from you!
Feel free to contact the author with your questions or comments.

Review Activities

Review activities are available for this chapter. Check your knowledge of chapter terms and concepts.