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

Centos8 builds nfs based on kdc encryption

Table of contents Configuration nfs server (nfs.s...

Detailed explanation of MySQL 8.0 atomic DDL syntax

Table of contents 01 Introduction to Atomic DDL 0...

MySQL high availability cluster deployment and failover implementation

Table of contents 1. MHA 1. Concept 2. Compositio...

Detailed explanation of count without filter conditions in MySQL

count(*) accomplish 1. MyISAM: Stores the total n...

Drawing fireworks effect of 2021 based on JS with source code download

This work uses the knowledge of front-end develop...

jQuery realizes dynamic particle effect

This article shares the specific code of jQuery t...

202 Free High Quality XHTML Templates (2)

Following the previous article 202 Free High-Qual...

Summarize the commonly used nth-child selectors

Preface In front-end programming, we often use th...

Implementation of CSS border length control function

In the past, when I needed the border length to b...

Pure CSS to achieve a single div regular polygon transformation

In the previous article, we introduced how to use...

A brief analysis of Linux resolv.conf

1. Introduction resolv.conf is the configuration ...

Docker deployment of Kafka and Spring Kafka implementation

This article mainly introduces the deployment of ...

Perfect solution to MySQL common insufficient memory startup failure

1. If MySQL is not started successfully, check th...