Home > Database > Mysql Tutorial > 如何使用 Microsoft Access 和 Active Server Pages 加密你的页

如何使用 Microsoft Access 和 Active Server Pages 加密你的页

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:12:07
Original
1329 people have browsed it

这是一个非常简单的 加密 程序,大家自己看看! % userid = Request(userid) userpass = Request(userpass) Set conn = Server.CreateObject(ADODB.Connection) DBPath = Server.MapPath(userinfo.mdb) conn.Open driver={Microsoft access Driver (*.mdb)};

  这是一个非常简单的加密程序,大家自己看看!
userid = Request("userid")
userpass = Request("userpass")

Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("userinfo.mdb")
conn.Open "driver={Microsoft access Driver (*.mdb)};dbq=" & DBPath

userid=trim(userid)
userpass=trim(userpass)
sql="select * from [userinfo]"
set Rs=Conn.execute(sql)
while not (Rs.bof or Rs.eof )
if userid=trim(Rs("用户名")) and userpass=trim(Rs("密码")) then
flag = "1"
end if
Rs.movenext()
wend
if flag = "1" then
Rs.close()
else
Rs.close()
Response.Write "
对不起,此用户不存在或密码不正确,请重试!

点这里回上一页!"
Response.End
End If
conn.close
%>

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template