Other Form Fields

There are two other types of form fields that are not created using an <input> tag. These two items are text areas and select lists. They’re both a bit more complex than the fields based on the <input> tag. Figure 5.3 contains examples of both types of fields.

Figure 5.3. A form containing a text area and two select lists.

Text Areas

Standard, one-line text input fields are fine for many tasks, but for some applications, like online discussion groups and feedback forms, you need to give users more space to enter text. This is where the <textarea> tag comes into play. It enables you to create a multirow form field for text ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.