Home > Web Front-end > HTML Tutorial > From form submission refreshes the page? _html/css_WEB-ITnose

From form submission refreshes the page? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:56
Original
1441 people have browsed it

Form submission jump

Reason for writing:

The poster’s html skills are average, and I accidentally remembered what people around me often say Submitting the form will refresh the page. I have nothing to do, so I just thought about the reasons

After thinking about it for a while, I guessed the following:

1. Submit the data first, and after the server receives the data, the browser performs an operation similar to F5

2. Perform data transmission at the same time, and F5

3. Related to the design of the server

4. It is related to the implementation of the browser

5. The agreement stipulates that the page must be refreshed

I feel that these are unreasonable, and I thought about it again and again....

Later I remembered the registration page I had done before. The data was submitted to the server and then redirected to other pages in the background. It was not a page refresh at all. The so-called page refresh may be that there was a problem with the submitted data and it redirected to the current registration page again. It seemed like It is refreshed, but it is actually a normal redirect

Therefore, the author feels that the form submission that people often say in the past will refresh the page is a bit misleading to novices, but it is actually a redirect.

If reproduced, please indicate the source:

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template