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

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

原文地址:https://www.cnblogs.com/apolloren/p/9966598.html