Chapter 5. Handling HTML Controls in Web Pages This chapter discusses what brings many people to PHPworking with HTML controls, such as text fields, checkboxes, radio buttons, listboxes, and others. This is where your web pages come alivethey start getting interactive as we begin reading data sent to us from the user, such as the user's name, credit card number, and so on. They will be able to select pizza toppings, shoe sizes, and shipping datesand you'll be able to handle that data back on the server, accessing it in your code. The HTML controls that we're going to embed in web pages appear in Table 5-1. Table 5-1. The HTML controlsControl | Description |
---|
Buttons | Customizable buttons created with <BUTTON>. | Checkboxes | A checkbox, created with the <INPUT TYPE=CHECKBOX> element. | Hidden controls | Controls that contain text but do not appear in the web page. Created with the <INPUT TYPE=HIDDEN> element. | Image maps | Clickable image maps created with <INPUT TYPE=IMAGE>. | Lists | A multi-line list control, created with the <SELECT> element. | Password | Creates a password control using <INPUT TYPE=PASSWORD">. | Radio buttons | A radio button, created with the <INPUT TYPE=RADIO> element. | Reset | A reset button created with <INPUT TYPE=RESET>. | Select controls | Lists that let you select one or more items; uses <SELECT>, <OPTION>, and <OPTGROUP>. | Submit | A submit button created with <INPUT TYPE=SUBMIT>. | Text areas | A multi-line text control, created with the <TEXTAREA> element. | Text fields | A one-line text control, created with the <INPUT TYPE=TEXT> element. |
|