最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp用户登录程序
时间:2008-08-15 编辑:简简单单 来源:一聚教程网
<%
dim sql
dim rs
dim username
dim password
username=replace(trim(request.form("username")),"'","")
password=replace(trim(request.form("password")),"'","")
password=md5(password)
set rs=server.createobject("adodb.recordset")
sql="select * from [User] where LockUser=False and username='" & username & "' and password='" & password &"'"
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("password") then
session("UserName")=rs("username")
'session("purview")=999
Response.Redirect "ment1.asp"
end if
end if
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
操作: 确认身份失败! | |
用户名或密码错误!!! 【返回】 |
-
上一个: 百度新闻分类展示新闻标题演示用过程
-
下一个: asp 分页程序
相关文章
- asp用户登录程序 07-18
- VBS 批量Ping的项目讲解 09-19
- 如何封装一个Ajax函数介绍 09-16
- ASP实现加法验证码方法 09-16
- ASP错误捕获的几种常规处理方法介绍 09-16
- ajax实现城市三级联动的代码介绍 09-16