Form submission Chinese background garbled

Source: Internet
Author: User

Submit to the background through form form forms

Through the form into the background, the submission method is divided into post and get two kinds. The difference between the two needs to be submitted by the form before it can be seen, mainly in the data transmission and reception methods. Both post and get are optional values for form attribute method, and the default value for method is get, the main difference between the two is:

1. On the client side, the Get method submits the data through the URL, the address in the Address bar will appear after the submission of the parameters, and the address in the Address bar after post submission does not appear parameters.

2. On the server side can only use Request.QueryString to obtain the data submitted by the Get method, the data submitted by post can only be obtained by Request.Form.

In general, try to avoid submitting forms using get, as it may cause security issues. For example, in the login form with get, the user entered the user name and password will be exposed in the address bar. However, in a paging program, it is better to use get mode than post.

Get adds parameters to the address specified by the Action property and opens as an anchor.
Post sends data via HTTP POST processing.


Generally if the method is set to "post", there will be no garbled characters, if the method is set to "get", may be in the background after the Chinese characters will be garbled problems.


This article is from the "Nothing-skywalker" blog, please be sure to keep this source http://tianxingzhe.blog.51cto.com/3390077/1677824

Form submission Chinese background garbled

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.