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

Detailed explanation of storage engine in MySQL

MySQL storage engine overview What is a storage e...

js dynamically generates tables (node ​​operations)

This article example shares the specific code of ...

Cross-origin image resource permissions (CORS enabled image)

The HTML specification document introduces the cr...

How to solve the problem of margin overlap

1. First, you need to know what will trigger the v...

Solutions to MySql crash and service failure to start

I have been in contact with PHP for so long, but ...

Native JS to achieve draggable login box

This article shares a draggable login box impleme...

Implementation of react loop data (list)

First, let's simulate the data coming from th...

Tutorial on installing and uninstalling python3 under Centos7

1. Install Python 3 1. Install dependency package...

Table setting background image cannot be 100% displayed solution

The following situations were discovered during d...

HTML+CSS to create heartbeat special effects

Today we are going to create a simple heartbeat e...

How to operate Linux file and folder permissions

Linux file permissions First, let's check the...

WeChat applet to obtain mobile phone number step record

Preface Recently, I encountered such a problem wh...