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

Introduction to the difference between html form form submission action and url jumping to actiond_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:39:172003browse

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)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn