313
CHAPTER
Adding Information from a Database 13
TIP
Can I use other form field types besides text fields?
Yes. If you have a database field that can only contain certain acceptable values, such as company
department names, you can and in fact should use radio buttons or select lists in the form. Fields that will
contain longer pieces of information, such as a biography of an employee, should use textareas. You should
use the form field type that makes the most sense for the data you need entered.
8 Type
<input
type=”submit”
value=”Add Record”
/>
The form is created.
6 Type <input
type=”text” name=”?”
id=”?” />
replacing both ?s with
appropriate name and ID
values for the field.
7 Repeat Steps 3 to 6 to create
any additional fields you
need for the form.