1.
@青山,用if判断,你去这里学学吧w3school.com.cn
7.
@青山,b2的源码
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <form method="post" action="b.php"> <input type="password"name="pass"/><input type="submit" name="ok"/></form> 密码sunny
b的源码
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>访问密码认证</title> <?php if($_POST['ok']) { if($_POST['pass']=='sunny')
//如果密码是sunny
{echo"密码正确gogogo<a href='
http://3g.cn.nf'>(* ̄︶ ̄*)</a>
//电影金陵十三钗<object width='541' height='450'><param name='allowFullScreen' value='true'><param name='movie' value='
http://i7.imgs.letv.com/player/swfPlayer.swf?autoPlay=0&id=1488765'/><embed src='
http://i7.imgs.letv.com/player/swfPlayer.swf?autoPlay=0&id=1488765' width='541' height='450' allowFullScreen='true' type='application/x-shockwave-flash'/></object>";}
//如果不是sunny
else{ echo"密码错误!你丫一边玩去╰_╯"; } } ?>★优化By sunny