alert('...');history.go(-1);"; " statement can be returned without refreshing the page."/> alert('...');history.go(-1);"; " statement can be returned without refreshing the page.">

Home  >  Article  >  Backend Development  >  How to return to the page without refreshing the page in php

How to return to the page without refreshing the page in php

藏色散人
藏色散人Original
2021-11-02 09:51:402907browse

php method to return the page without refreshing: 1. Open the corresponding PHP code file; 2. Pass "echo"3f1c4e4b6b16bbbd69b2ee476dc4f83aalert('...');history.go(-1) ;2cacc6d41bbb37262a98f745aa00fbf0";" statement can be returned without refreshing the page.

How to return to the page without refreshing the page in php

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

How does php return to the page without refreshing it?

PHP implements methods of returning to the previous page without refreshing and refreshing

Returning to the previous page without refreshing:

echo"<script>alert(&#39;已从错题本中删除!&#39;);history.go(-1);</script>";

Returning to the previous page with refreshing:

echo "<script>alert(&#39;错题全部清除完毕!&#39;);location.href=&#39;" . $_SERVER["HTTP_REFERER"] . "&#39;;</script>";

Recommended learning: "PHP Video Tutorial"

The above is the detailed content of How to return to the page without refreshing the page in php. For more information, please follow other related articles on the PHP Chinese website!

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