F
form2
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么别人可以得到超级用户的权限?难道代码有问题吗?
myemail:form2@163.com
<%
dim rs
Name1=request.form("UserName")
PW1=request.form("PassWd")
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select * from admin where UserName='" & Name1 & "'",conn,1
if pw1<>rs("passwd") then
response.write "Sorry,请输入正确的管理员名字和密码"
else
session("UserName")=RS("Username")
session("KEY")=rs("myKEY")
response.redirect "main.asp"
end if
rs.close
%>
myemail:form2@163.com
<%
dim rs
Name1=request.form("UserName")
PW1=request.form("PassWd")
set rs=server.CreateObject("ADODB.RecordSet")
rs.open "select * from admin where UserName='" & Name1 & "'",conn,1
if pw1<>rs("passwd") then
response.write "Sorry,请输入正确的管理员名字和密码"
else
session("UserName")=RS("Username")
session("KEY")=rs("myKEY")
response.redirect "main.asp"
end if
rs.close
%>