Allow users to select a ticket or check box

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.