if($ok){
header("location:ok.php");
}

解决方案 »

  1.   

    跳到另一页面传递参数,判断后就转if($login){
    header("location:checkPassword.php");
    }
      

  2.   

    if(条件满足)
    {
    header("Location: nextPage.php");
    }注意要在PHP的头部使用,就是说还没有HTML输出的时候
      

  3.   

    if (true){
    echo "<meta http-equiv=refresh content='1;url=转向页面地址'>";
    }