Hi!
I got error. Pls check my error.
I got error. Pls check my error.
Code:
<%
dim uname
dim pwd
uname = Request.Form("txtuname")
pwd = Request.Form("txtpwd")
Session.Contents("uname") = uname
Set rs = Server.CreateObject("ADODB.Recordset")
Set rs.ActiveConnection = my_Conn
rs.Open "select * from tbl_Login_info where User_name = '"&uname&"' "
if rs.RecordCount = 0 then
rs.Close
my_Conn.Close
set rs=nothing
set my_Conn=nothing
Response.Redirect("verify.asp?Submit=namefailed")
end if
if rs("User_name") = uname then // [b] i got error in this line "Exception occurred? [b]
if rs("Password")= pwd then
rs.Close
my_Conn.Close
set rs=nothing
set my_Conn=nothing
Response.Redirect("wel.html")
else
rs.Close
my_Conn.Close
set rs=nothing
set my_Conn=nothing
Response.Redirect("verify.asp?Submit=passfailed")
end if
else
rs.Close
my_Conn.Close
set rs=nothing
set my_Conn=nothing
Response.Redirect("verify.asp?Submit=namefailed")
end if
%>
Comment