Share this Page URL

Chapter 12. Need Feedback? Create a Form! > Creating a Form - Pg. 132

Need Feedback? Create a Form! 132 In this case, Field Name is a name you assign to the field that's unique among the other fields in the form. For example, to create a text box the reader can use to enter his first name (let's call it First), you'd enter the following: <INPUT TYPE="TEXT" NAME="First"> For clarity, you also want to precede each text box with a label that tells the reader what kind of information to type in. For example, the following line precedes a text box with First Name: so the reader knows to type in his first name: First Name: <INPUT TYPE="TEXT" NAME="First"> Page Pitfalls It's crucial to remember that every form control (button, text box, and so on) must have a unique name. The only exception to this is that a group of related radio buttons (discussed a bit later) must have the same name. Here's some HTML code (textbox.htm on this book's CD) that utilizes a few text boxes to gather some information from the reader: <HTML> <HEAD> <TITLE>Text Box Example</TITLE>