php 返回上一页并刷新

echo "<script>alert('分组已存在!');location.href='".$_SERVER["HTTP_REFERER"]."';</script>"; 

原文地址:https://www.cnblogs.com/hellowzd/p/4220640.html