1 method is an attribute that specifies how data is sent to the server
2 It can only be post and get post: The official explanation is to transfer data to the server through the post session. It is actually submitting data. get: Add the data in the form in variable=value to the URL pointed to by the action, and use ? connections between the two, and use & connections between each variable; it is generally used to obtain data from the server.
3. The default is get, so we usually specify it as post
For example:For example, there are 2 pages, a.htm and b.asp, and you want to pass the value in the a.htm page form to the b.asp page.
Then there will be the following form code in a.htm:
Copy the code