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
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.
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('已从错题本中删除!');history.go(-1);</script>";
Returning to the previous page with refreshing:
echo "<script>alert('错题全部清除完毕!');location.href='" . $_SERVER["HTTP_REFERER"] . "';</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!