What You Will Learn in This Chapter
Wrox.com Code Downloads for this Chapter
The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=9781118340189 on the Download Code tab. The code is in the Chapter 6 download and individually named according to the names throughout the chapter.
Almost every time you want to collect information from a visitor to your site, you need to use a form. Some forms are quite complex, such as those that enable you to book plane tickets or purchase insurance online. Others are quite simple, such as the search box on the homepage of Google.
Many online forms bear a strong resemblance to paper forms. On paper, forms are made up of areas to enter text, boxes to check, options to choose from, and so on. Similarly, on the web you can create a form by combining form controls, such as textboxes (to enter text into), check boxes (to place a cross in), select boxes and radio buttons (to choose from different options), and so on. In this chapter, you learn how each of these different types of controls can be combined into a form to collect all kinds of information from visitors to your site.