Form & amp; method [POST ~ GET ],

Source: Internet
Author: User
Tags html header

Form & method [POST ~ GET ],

In <form.../>, the method attribute specifies the method in which the form submits the request. There are two methods: GET request and POST request. The default method is GET request. The difference between the two methods: get requests are sent by entering the access address in the address bar of the browser, that is, they are transmitted through the address bar. You can see the request parameter name and value in the address bar. The get parameter has a length limit, and the transmitted data volume is small, generally not greater than 2 kb. POST requests are usually sent by submitting forms. It transfers a large amount of data, which is generally considered unlimited. The request parameters sent in POST mode and their corresponding values are transmitted in the html header. You cannot see the Request Parameters in the address bar. Relatively speaking, the POST request method is more secure than the GET request method. On an HTML page, you can submit a request in either of the following ways: submit a form or use a hyperlink. The submission form allows you to enter Request Parameters and submit the request in POST mode. Only GET requests can be submitted in hyperlink mode. hyperlink submission requests can also contain request parameters, but cannot collect user input.

 

Related Article

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.