下面的ASP登录代码哪儿错了,急!!!!

[复制链接]
查看11 | 回复2 | 2011-1-10 16:26:57 | 显示全部楼层 |阅读模式
pwd then

response.write ""

response.end


end if


session("username")=username
response.write""
end if
%>

回复

使用道具 举报

千问 | 2011-1-10 16:26:57 | 显示全部楼层
出错可能性分析:1、数据库连接出错2、表名或字段名出错(或数据库是空的)3、表单提交模式出错,请检查是GET还是POST4、好像没创建RS对像吧Set Rs=Server.CreateObject("ADODB.Recordset") '加到第11行
回复

使用道具 举报

千问 | 2011-1-10 16:26:57 | 显示全部楼层
都错了if语句位置不对,不能限制后面的session我给改一下sql="select * from login where username='"&username&"' and pwd='"&pwd&"'" rs.open sql,conn,1,1 if rs.eof and rs.bofthenresponse.write
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行