Form form submission, background how to get the value of select? You can get it directly from the background, just like the input method.

Source: Internet
Author: User

Form form submission, background how to get the value of select.


The background is directly obtained, and the background to get input value in the same way.

After the form is submitted, the background is directly based on the name of select, which is Getpara ("XXX"), which is the value of the option chosen.


Principle of execution: form submission, the browser according to "Select the name = Selected option" In the form of the HTTP URL in the request message (this is the browser provides the function, that is, the browser is responsible for the completion), so the background directly to get it, The same way you get the value of input.

I randomly captured a request message for an HTTP URL for a project:





Verify that I am right.

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.