简单问题求助.
自己写的一个验证.问题是:总是提示"密码错误",数据库等都没有问题的了.请教各位高人.
<!--#include file="conn.asp"-->
<%
dim LogName,LogPwd
LogName=trim(request("LogName"))
LogPwd=trim(request("LogPwd"))
if LogName="" or LogPwd="" then
response.write "<script>alert('对不起,用户名和密码不能为空!');document.location.href='login.asp';</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from Logchk where LogName='"&LogName&"'"
rs.open sql,conn,1,1
%>
<%
if not rs.eof then
if rs("LogPwd")<>LogPwd then
response.write "<script>alert('对不起,密码不正确,请重新输入');document.location.href='login.asp';</script>"
response.end
else
session("user")=LogName
response.redirect "text.asp"
end if
else
response.write "<script>alert('对不起,你的用户名不存在,请与管理员联系!');document.location.href='login.asp';</script>"
response.end
end if
%>
<!--#include file="conn.asp"-->
<%
dim LogName,LogPwd
LogName=trim(request("LogName"))
LogPwd=trim(request("LogPwd"))
if LogName="" or LogPwd="" then
response.write "<script>alert('对不起,用户名和密码不能为空!');document.location.href='login.asp';</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from Logchk where LogName='"&LogName&"'"
rs.open sql,conn,1,1
%>
<%
if not rs.eof then
if rs("LogPwd")<>LogPwd then
response.write "<script>alert('对不起,密码不正确,请重新输入');document.location.href='login.asp';</script>"
response.end
else
session("user")=LogName
response.redirect "text.asp"
end if
else
response.write "<script>alert('对不起,你的用户名不存在,请与管理员联系!');document.location.href='login.asp';</script>"
response.end
end if
%>
...全文
相关推荐
springboot707智慧外贸平台--论文.zip
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
基于springboot的智慧外贸平台--论文.zip
基于springboot的智慧外贸平台--论文.zip
springboot智慧外贸平台--论文.zip
论文、开发文档、数据文档、源码 个人经导师指导并认可通过的高分设计项目,项目中的源码都是经过本地编译过可运行的,都经过严格调试,确保可以运行!主要针对计算机相关专业的正在做大作业、毕业设计的学生和需要项目实战练习的学习者,资源项目的难度比较适中,内容都是经过助教老师审定过的能够满足学习、使用需求,如果有需要的话可以放心下载使用。
springboot707智慧外贸平台--论文(文档+源码)_kaic.zip
计算机毕业设计
【Claude Code 源码解析教程】第7章:Shell 工具实现
本章深入解析 Claude Code 的 Shell 工具系统,包括 BashTool 和 PowerShellTool 的实现原理、安全机制和执行策略。


