Two data submission methods to the server

Source: Internet
Author: User
  1. plain version: When the client clicks the submit button, the browser will collect the namevalue value of the form element on the page, and then send it to the server in the form of key-value pairs with name as key and value as value, these form elements include the tags of the input series, select, textarea, and other form elements. These elements can only send value values, and other attribute values cannot be directly sent, the attribute values of other tags cannot be directly sent to the server for direct interaction with the server. They all need to communicate with the server through form elements (input series tags, select, textarea, here, the action method of the form element needs to be manually specified, while that of the deluxe edition does not need to be specified. Everything is automated and the POST method is used by default; HTTP defines different methods for interacting with servers, the basic methods are Get and post: .

     (1) Get gets data from the server, and post transfers data to the server. (2) on the client side, the get method submits data through the URL, and the data can be seen in the URL. In the post mode, the data is placed in the HTML header for submission. (3) For the get method, the server uses request. querystring is used to obtain the value of a variable. For the POST method, the server uses request. form to obtain the submitted data. You can use request ["keyname"] to obtain the value. (4) data submitted in get mode can contain a maximum of 1024 bytes, whereas post mode does not. (5) security issues. As mentioned in (1), when get is used, the parameter is displayed in the address bar, but post is not. Therefore, if the data is Chinese and non-sensitive, use get. If the data entered by the user is not Chinese characters and contains sensitive data, use post. 

  2. deluxe edition: the so-called deluxe edition is used. net highly encapsulated Server Control communicates with the server. Its usage is simple. Even the Programs ;

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.