<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% query ="SELECT * "_ &" FROM Logon "_ &" WHERE UserName = '" & Request("UserName") & "' And Passwords = '" & Request("Password") & "' " Set RSlogon = conn.execute(query) If Not RSlogon.EOF Then If RSlogon("Passwords") = Request("Password") Then Session("UserName") = Request("UserName") Session("Level") = RSlogon("Levels") Response.Redirect "logon-menu.asp" Else Response.Redirect "sorry-wpwd.asp" 'Sorry, but the password that you entered is incorrect.' End If Else Response.Redirect "sorry-wusr.asp" 'Sorry, but the username that you entered does not exist.' End If RSlogon.Close Set RSlogon = Nothing %> <%= WebsiteTitle %>