基于mysql的登陆验证程序
时间:2006-01-23 来源:nothing9
login.php3
Database: MySQL
Host: localhost Database : mydb
Table structure for table 'user'
--------------------------------------------------------
CREATE TABLE user (
id smallint(6) NOT NULL auto_increment,
user varchar(12) NOT NULL,
passwd varchar(12) NOT NULL,
name varchar(20),
email varchar(30),
level char(1),
status char(1),
UNIQUE id (id)
);
--------------------------------------------------------
*******************************************************/
?>
function back(){
history.back();
}
function winclose(){
setTimeout("self.close()",10000);
}
";
echo "你已经成功登陆。。。"."";
echo ""."窗口10秒钟后自动关闭"."";
echo "";
}
else {
echo "帐号或密码错误!!!";
echo "";
echo "";
echo "back";
echo "" ;
}
?>
/************************
file name: login.htm
************************/
系统登陆
系统登陆
用户帐号
用户密码
login_chk.php3
************************/
if ($yn!="yes") {
echo "\n";
echo " \n";
echo " \n";
exit;
}
?>
Example
Success! You have pass the checking.
相关阅读 更多 +