古詩詞大全網 - 成語查詢 - php 滿足條件後跳轉的幾種方法.

php 滿足條件後跳轉的幾種方法.

答1:if($ok){header("location:ok.php");}______________________________________________________________________________________________答2:跳到另壹頁面傳遞參數,

header("location:checkPassword.php");}______________________________________________________________________________________________答3:if(條件滿足){header("Location: nextPage.php");}註意要在PHP的頭部使用,就是說還沒有HTML輸出的時候

______________________________________________________________________________________________答4:if (true){echo "<meta http-equiv=refresh content='1;url=轉向頁面地址'";}