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

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

PHP中文网
PHP中文网Original
2016-05-23 17:09:371576browse

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

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

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

                   

                   

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
Previous article:用php实现评委评分器Next article:生成随机数