// 方法一: echo "<script>alert('提交成功')</script>"; header("refresh:0;url=callback.php"); // 方法二: echo "<script>alert('提交成功');window.location.href=document.referrer;</script>"; // 方法三: echo '<script>alert('提交成功');window.location.href="act.php";</script>';