您的位置:程序门 -> web 开发 -> asp



高手来帮看下


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


高手来帮看下
发表于:2007-01-06 12:01:28 楼主
<%
dim   username
dim   password
username=request.form( "username ")
password=request.form( "password ")
if   username= " "   then
response.write " <script> alert( '用户不能为空 ') </script> "
response.end
end   if
if   password= " "   then
response.write " <script> alert( '密码不能为空 ') </script> "
response.end
end   if
set   rs=server.createobject( "adodb.recordset ")
sql= "seclet   *   form   [admin]   where   admin_name= ' "&username& " 'and   admin_pwd= ' "&password& " ' "
  rs.open   sql,conn,1,1,
if   rs.eof   and   rs.bof   then
response.write " <script   language= 'javascript '> alert( '用户或密码错误! '); "
response.write "javascript:history.go(-1) </script> "
response.end
else
session( "admin ")=rs( "admin_name ")
session( "password ")=rs( "admin_pwd ")
end   if
rs.close
set   rs=nothing
%>
发表于:2007-01-06 12:02:291楼 得分:0
what   do     you   want   to   do?
发表于:2007-01-06 12:07:222楼 得分:0
这个是asp,有什么问题?
发表于:2007-01-06 12:08:003楼 得分:0
这是asp吧,而且有注入


快速检索

最新资讯
热门点击