O'Reilly logo

Sams Teach Yourself CGI in 24 Hours, Second Edition by Rafe Colburn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The <input> Tag

The <input> tag is used to actually create most of the HTML form fields. The type attribute of this tag is used to indicate what type of field is being created, and other attributes are used to set the parameters for that field. The types of input fields available are text fields, password fields, check boxes, radio buttons, hidden fields, and file upload fields. The <input> tag is also used to create Submit and Reset buttons. I’m going to talk about each of them individually.

First, however, I want to discuss two attributes that are common to all input fields, name and value. When the data in a form is sent to the Web server, it is organized in name/value pairs. The name attribute allows you to identify each field on the form. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required