一个基于mysql的登陆验证程序(三)
时间:2007-02-17 来源:PHP爱好者
<?
/************************
file name: login_chk.PHP3
************************/
if ($yn!="yes") {
echo "<script language="javascript">n";
echo "<!-- n";
echo "history.back () ;n";
echo "window.open ('../login/login.htm','login','height=116,width=210,top=120,left=200,toolbar=no,menubar=no,scrobllbar=no,resizable=no,location=no,status=no')n";
echo "--> n";
echo "</script> n";
exit;
}
?>
Example:
<? require("login_chk.PHP3"); ?>
<!--file name: sample.PHP3-->
<HTML>
<head></head>
<body>
Success! You have pass the checking.
</body>
<HTML>
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
/************************
file name: login_chk.PHP3
************************/
if ($yn!="yes") {
echo "<script language="javascript">n";
echo "<!-- n";
echo "history.back () ;n";
echo "window.open ('../login/login.htm','login','height=116,width=210,top=120,left=200,toolbar=no,menubar=no,scrobllbar=no,resizable=no,location=no,status=no')n";
echo "--> n";
echo "</script> n";
exit;
}
?>
Example:
<? require("login_chk.PHP3"); ?>
<!--file name: sample.PHP3-->
<HTML>
<head></head>
<body>
Success! You have pass the checking.
</body>
<HTML>
php爱好者站 http://www.phpfans.net PHP|MySQL|javascript|ajax|html.
相关阅读 更多 +