about the request mode (Form form)1. Several properties of the form<form name="input"action="http://www.baidu.com"Method="Get">Username:<input type="text"Name="User"><input type="Submit"Value="Submit"></form>1) The browser submits data to the server, the form (input,Select, textarea, etc.) into the form, which is set by the Action property to which page the form is submitted to, in order to fetch the value of the table item on the server, you need to set the Name property for the form element in HTML2Note that the ID is for the JS Operation DOM, name is submitted to the server for use. The ID cannot be duplicated, name can be duplicated, and the duplicate name value will be submitted to the server. 3Method is the way of submission, divided by the Get mode and the Post method of two2. Get and Posthtml forms<form>parameters can be submitted automatically to the server. clipboard[2]get is submitted by URL request parameters, which are directly exposed to the URL. clipboard[3]post is through the newspaper style, the submitted data will not be directly exposed to the user. 3. Which tags will be submitted? Which tags will be submitted to the server? The following conditions apply to the submission of user-filled content to the server: Submission condition 1: Only input, textarea, select three types of labels. Submission Condition 2: The value of only three label values for the Value property (select is the value of the selected item) is not submitted to the server. Tag must be set Name property (reason: No name how to spell URL I=5)。 If you want to submit the value of the tag to the server, you must set the Name property for the tag, and when you commit to the server, it will be "name=value "is presented to the server in the form of a key-value pair. The name is for the server, and the ID is for the DOM. Submission Condition 3: For RadioButton, the same name as a group, the selected RadioButton value is committed to the server. (Reason: If all commits, the server knows who is selected?) ) Submission Condition 4: When input=At the time of submission, only the clicked button (with Name) value will be submitted (the reason: otherwise I know who was ordered?) )。 Submit condition 5: Put in the form tag. Only tags placed inside the form tag may be submitted to the server, and tags such as input outside the form are ignored.
Source: http://www.cnblogs.com/mcad/p/4343555.html
MVC Data Submission