ASP page form submission does not get problems in the background

Source: Internet
Author: User

Today encountered a wonderful problem, ASP page form submitted, there is a text box <input type= "text" name= "phone" id= "phone"/> in the background can not get,

This tag in the form form, also has the Name property, but in the background is not get the value of this tag, and other text boxes, check boxes can be obtained, this is strange!

After several twists and turns, finally found the reason, originally I submitted the form, the name = "Phone" This label is now disabled in a JavaScript event, that is, the full status of the label is:

<input type= "text" name= "phone" id= "phone" disabled/>

This causes the value of the parameter to be not phone in the ASP background. This should mean that the phone tag is disabled on the client and the form submission will not be submitted to the server.

The workaround is to set the label to be readable:<input type= "text" name= "phone" id= "Phone" readonly= "readonly"/>

In this way, not only the contents of the label can not be arbitrarily modified, but also can be submitted to the server to

ASP page form submission does not get problems in the background

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.