php 满足条件后跳转的几种方法.
答1:
if($ok){
header("location:ok.php");
}
______________________________________________________________________________________________
答2:
跳到另一页面传递参数,
判断后就转
if($login){
header("location:checkPassword.php");
}
______________________________________________________________________________________________
答3:
if(条件满足)
{
header("Location: nextPage.php");
}
注意要在PHP的头部使用,就是说还没有HTML输出的时候
______________________________________________________________________________________________
答4:
if (true){
echo "<meta http-equiv=refresh content='1;url=转向页面地址'>";
}