HTML form submission

Source: Internet
Author: User

HTML form submissions, which values of which tags will be submitted to the server?

1, only input, textarea, select three types of labels. Only these label users may modify the values,<label>, <p>, <font> and other labels for display purposes only, without the need to submit to the server. When Input=submit, only the value of the button clicked will be submitted;

2, the input tag has title, type, disabled, value and other attributes, but only the Value property values will be submitted to the server, the other properties are for display purposes, the user can not modify;

3. The label must have the name attribute set. If you want to submit the value of a label to the server, you must set the Name property for the label and submit it to the server as a "Name=value" key-value pair. The name is for the server, and the ID is for the DOM. For RadioButton, the same name as a group, the selected RadioButton value is submitted to the server;

4. The label to be submitted must be placed in the form label. Only tags placed in the form tag may be submitted to the server, and input tags outside of the form will be ignored.

HTML form submission

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.