This is a very simple encryption program. Let's take a look! % UseridRequest (userid) userpassRequest (userpass) SetconnServer. CreateObject (ADODB. Connection) DBPathServer. MapPath (userinfo. mdb) conn. Opendriver {MicrosoftaccessDriver (*. mdb )};
This is a very simple encryption program. Let's take a look! % Userid = Request (userid) userpass = Request (userpass) Set conn = Server. createObject (ADODB. connection) DBPath = Server. mapPath (userinfo. mdb) conn. open driver = {Microsoft access Driver (*. mdb )};
This is a very simple
EncryptionProgram, let's take a look!
<%
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 rsw.conn.exe cute (SQL)
While not (Rs. bof or Rs. eof)
If userid = trim (Rs ("username") and userpass = trim (Rs ("password") then
Flag = "1"
End if
Rs. movenext ()
Wend
If flag = "1" then
Rs. close ()
Else
Rs. close ()
Response. Write" Sorry, this user does not exist or the password is incorrect. Please try again!
Click here to go back to the previous page! "
Response. End
End If
Conn. close
%>