The difference between html form submission action and url jump to actiond

The difference between html form submission action and url jump to actiond
The action of the form is different from the URL jump:

The form can pass data to the background, and the background can directly use the request object to request data from the front end.
There are two ways to pass data through a form:
method="post": This is used to transfer large amounts of data. The data will be packaged before being transferred, so this method of transferring data will be less efficient, but the data that passes through can be parsed correctly, so there will be no garbled characters when transferring Chinese.
method="get": transmitted via URL. Due to the limited length of the address bar, the amount of data is limited, and the transmitted data must be within the ASCII code value range. Therefore, garbled characters will appear when Chinese is transmitted, and special processing is required.

The url jumps to the action only through the url parameters to pass data, action? parameter name = parameter value & ..., in the background, you can also use the request object to request the url parameter value from the front end (the url passing Chinese parameters needs special processing)

<<:  HTTP Status Codes

>>:  The problem of jquery.form.js denying access in IE and the input upload button must be actively clicked

Recommend

Summary of Vue 3 custom directive development

What is a directive? Both Angular and Vue have th...

Introduction to 10 Hooks in React

Table of contents What is ReactHook? React curren...

How to use Antd's Form component in React to implement form functions

1. Construction components 1. A form must contain...

Detailed explanation of Vue component reuse and expansion

Table of contents Overview Is the extension neces...

Use Shell scripts to batch start and stop Docker services

Table of contents Start Docker Stop Docker Python...

Introduction to CSS3 color value RGBA and gradient color usage

Before CSS3, gradient images could only be used a...

Detailed explanation of JS array methods

Table of contents 1. The original array will be m...

MySQL 5.7.24 installation and configuration graphic tutorial

This article shares the installation and configur...

Detailed tutorial on installing MySQL 8.0.20 database on CentOS 7

Related reading: MySQL8.0.20 installation tutoria...

HTML table markup tutorial (43): VALIGN attribute of the table header

In the vertical direction, you can set the alignm...

Div nested html without iframe

Recently, when doing homework, I needed to nest a ...

How to modify the firewall on a Linux server to allow remote access to the port

1. Problem Description For security reasons, the ...