I have set up the database to make the connection, now I am trying to get information out of the db. The user will type in a username and password and I need to check to see if the person matches someone in the db. Pretty elementary I am sure, but I am doing something wrong.
<% Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset"
objRS.Open "UsernamePassword", objConn, , , 2
Dim strName, strPassword
strName = Request ("Username"
strPassword = Request ("Password"
Session ("Username"
= strName
Session ("Password"
= strPassword %>
later on for the comparison I have:
<% objRS.Filter = "Username = " & strName
If Not objRS.EOF then
Response.Redirect "members.asp"
Else
Response.End
end if
%>
Any help is GREATLY appreciated.
<% Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset"
objRS.Open "UsernamePassword", objConn, , , 2
Dim strName, strPassword
strName = Request ("Username"
strPassword = Request ("Password"
Session ("Username"
Session ("Password"
later on for the comparison I have:
<% objRS.Filter = "Username = " & strName
If Not objRS.EOF then
Response.Redirect "members.asp"
Else
Response.End
end if
%>
Any help is GREATLY appreciated.