HTML form submission method

Source: Internet
Author: User

HTML form submission method: two attributes, action and method, which are 5-heavy

 

 

 

(1) The action attribute specifies the program that processes the current form after it is submitted. This handler can be any dynamic web page.

 

 

 

 

(2) The method attribute specifies the form submission method. It has two possible values: get and post.

 

1. get and post have the following differences:

 

1. parameter names and parameter values are displayed in the address bar of the form submitted in get mode, but not in post mode. The parameters submitted in post mode are more confidential and safer.

2. Because the maximum number of bytes that can be entered in the address bar of the browser is limited, you cannot use the get method to submit a form with a larger parameter value. The post method does not have this restriction.

 

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.