标题:大家帮帮菜鸟偶吧
取消只看楼主
阿一
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2005-8-13
 问题点数:0 回复次数:0 
大家帮帮菜鸟偶吧

<!--#include file="conn1.asp"--> <!--#include file="function.asp"--> <% username=Checkin(trim(Request.form("username"))) password=Checkin(trim(Request.form("password"))) if username="" or password="" then Response.Redirect ("index.asp")

set rs=server.createobject("adodb.recordset") sql="select * from admin where username='"&username&"'and password='"&password&"'" rs.open sql,conn1,1,3 if not rs.EOF then rs("LoginTimes")=rs("LoginTimes")+1 rs("LoginTime")=now() rs("LoginIP")=Request.ServerVariables("REMOTE_ADDR") rs.Update

Session("AdminID")=rs("id") Session("IsAdmin")=true Session("KEY")=rs("oskey") Session.timeout=900 Response.Redirect ("admin.asp") else errmsg="请输入正确的管理员名字和密码!" call error() Response.End end if rs.close set rs=nothing conn1.close set conn1=nothing %> 会出现500错误啊

搜索更多相关主题的帖子: password include admin where file 
2005-08-13 23:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-25081-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.476587 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved