往链点点通共享资源,了解更多请登录
1,( 用户登陆页面)
<!-- #include file="" -->
<!-- blog. 悠悠长假期-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>会员</title>
<style type="text/css">
<!--
body,td,th {
font-family: 宋体;
font-size: 14px;
}
-->
</style>
</head>
<body>
<center>
<p>会员注册系统</p>
<form name="form1" method="post" action="">
<table width="34%" border="0">
<tr>
<td width="33%" height="30">用户名:</td>
<td width="67%" height="30"><input name="username" type="text" id="username" size="15"></td>
</tr>
<tr>
<td height="30">密码:</td>
<td height="30"><input name="password" type="password" id="password" size="15"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="确定">
<input type="reset" name="Submit" value="重置"></td>
</tr>
<tr>
<td colspan="2"><a href="" target="_self">注册</a></td>
</tr>
</table>
</form>
</center>
</body>
</html>
2,( 用户数据处理文件)
<!-- #include file="" -->
<%
'打开数据库判断用户是否存在,info为表名,username为字段名
set rsc=("")
sqlc="select * from info where username='"&("username")&"' and password='"&("password")&"'"
sqlc,conn,1,1
session("username")=rsc("username")
session("password")=rsc("password")
=30
set rsc=nothing
asp注册登陆系统源代码 来自淘豆网www.taodocs.com转载请标明出处.