What is wrong with this code? Although I key password in correctly, it still redirects me to my relogin (intro2)page rather than the other.
<%@ Language=VBScript %>
<% response.buffer = true %>
<%
Dim oMRST
Dim Password
Dim Username
Password = Request.form("password"
Username = Request.Form("SDTmgr"
set omrst = server.createobject("ADODB.Recordset"
Omrst.open "SELECT * FROM tblPDS_users WHERE user = '" & username & "';", "DSN=PDS"
If NOT omrst.EOF AND (omrst.fields("password" = password) THEN
response.redirect "pds_mgr.asp"
else
response.redirect "pds_intro2.asp"
end if
%>
Mary
Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)
<%@ Language=VBScript %>
<% response.buffer = true %>
<%
Dim oMRST
Dim Password
Dim Username
Password = Request.form("password"
Username = Request.Form("SDTmgr"
set omrst = server.createobject("ADODB.Recordset"
Omrst.open "SELECT * FROM tblPDS_users WHERE user = '" & username & "';", "DSN=PDS"
If NOT omrst.EOF AND (omrst.fields("password" = password) THEN
response.redirect "pds_mgr.asp"
else
response.redirect "pds_intro2.asp"
end if
%>
Mary
Rule 1: Don't sweat the small stuff.
Rule 2: EVERYTHING is small stuff!! X-)