答案:<?
/************************
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,易做图=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没有安全漏洞, 呵呵. 要注意设置
下一个:在PHP中得到多选的下拉菜单的各项值(一个例子)