Home > php教程 > PHP源码 > php操作成功返回当前页并刷新

php操作成功返回当前页并刷新

PHP中文网
Release: 2016-05-23 17:09:37
Original
1581 people have browsed it

php操作成功返回当前页并刷新,一行代码。。

1. [代码]php操作成功返回当前页并刷新    

echo "<script>alert(&#39;操作成功&#39;);location.href=&#39;".$_SERVER["HTTP_REFERER"]."&#39;;</script>";
Copy after login

                   

                   

Related labels:
php
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
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template