跳转有三种方法可以实现:
一、用meta
<meta http-equiv=refresh content=‘‘5‘‘ url=sina.com>
二、用header
header("refresh:5;url=sina.com");
三、用Javascript实现
echo "<script>alert(‘‘成功添加‘‘);";
echo "this.location.href=‘‘index.php‘‘;</script>"; echo "<script language=javascript>alert(‘‘用户名和密码有误‘‘);"; echo "javascript:history.go(-1)</script>"; |
|