2. 口令:<form method='get' action='houtai.php'> <textarea name='kouling' cols='15' rows='2' ></textarea> <br /> <input type="submit" value='提交'></form> <br />
4. <?php $ling=$_GET['kouling']; if($ling=='') { echo "<script language='javascript'>location.href='kouling.php'</script>"; } else if($ling!=='zwgy') { echo "<script language='javascript'>location.href='kouling.php'</script>"; }
?>
6. if(isset($_POST["pass"]) )
{
if($_POST["pass"] == 你指定的口令))
{
header("location:跳转到地址");
// 也可以用这个 include "xx.php";
//建议用include包含进去,这样可以保证只有在输入正确口令下才能进入指定页面
}else{
header('HTTP/1.1 404 Not Found');
header('Status: 404 Not found');
}
}else{
<form action="?" method="post">
<input type="text"name="pass"/>
<input type="submit"value="输入口令"/>
</form>
}