Allow users to select a ticket or check box
Allow users to select a ticket or check box
When using a form design questionnaire, to reduce user operations, using a selection box is a good idea. There are two selection boxes in html:Single regionAndCheck box, The difference between the two isSingle regionYou can select only one optionCheck boxYou can select multiple or even all. See the following example:
Syntax:
1,Type:
WhenType = "radio"The control isSingle region
WhenType = "checkbox"The control isCheck box
2,Value:Value of the data submitted to the server (used by the background program PHP)
3,Name:Name the control for use by background programs ASP and PHP.
4,Checked:When checked = "checked" is set, this option is selected by default.
The following code is used:
Note: In the codeThe labels are described in Chapter 5-9.
Result displayed in the browser:
Note: The names of Single-choice buttons in the same group must be consistent. For example, in the preceding example, the same name is "radioLove", so that single-choice buttons in the same group can be used for single-choice.