Home >Web Front-end >HTML Tutorial >Introduction to the difference between html form form submission action and url jumping to actiond_HTML/Xhtml_Web page production
The action of the form form is different from the URL jump:
The form form can pass data to the backend, and the request object can be used directly in the backend to request data from the frontend.
There are two ways to transmit data in the form:
method="post": This is used when transmitting a large amount of data. The data will be packaged before the data is transmitted, so this method of transmitting data will be more efficient. It is relatively slow, but the data passed through can be parsed correctly, so there will be no garbled characters when transmitting Chinese.
method="get": passed by URL. Because the length of the address bar is limited, the amount of data is limited, and the data passed must be within the ASCCI code value range. Therefore, there will be garbled characters when transmitting Chinese. Requires special handling.
URL jumps to action and data can only be passed through the parameters of the URL. action?Parameter name = parameter value&... In the background, you can also use the request object to request the parameter value of the URL from the front desk (URL is passed in Chinese) Parameters require special processing)