stayhere(且留连)请进!!!还是那个用户问题请教.

nightdays 2004-05-02 11:24:43
http://expert.csdn.net/Expert/topic/3028/3028923.xml?temp=.8167078
还是那个判断用户是否存在的问题.
reg.asp:
<form method=post action=reg1.asp>
用户:<input type=text name=username><%=request.querystring("errmsg")%> <br>
密码:<input type=text name=userpass>

<%=request.querystring("errmsg")%>----------怎么判断errmsg为某个值?
例如我希望为值为1时输出特定的信息,还有就是判断为空的时候
但用errmsg<>"",则显示errmsg为"0",请问是怎么回事?
...全文
105 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
huidan 2004-05-03
  • 打赏
  • 举报
回复
楼上
nightdays 2004-05-03
  • 打赏
  • 举报
回复
多谢了.
stayhere 2004-05-02
  • 打赏
  • 举报
回复
用户:<input type=text name=username><%errmsg=request.querystring("errmsg")
if errmsg=1 then
response.write "用户名错误"
elseif errmsg=2 then
response.write "密码错误"
elseif errmsg=3 then
response.write "邮箱帐号无效"
end if
%> <br>
密码:<input type=text name=userpass>
luluso 2004-05-02
  • 打赏
  • 举报
回复
<%
aa=request.querystring("errmsg")
if aa=1 then
response.write "aa为1"
end if
if aa="" then
response.write "aa为空"
end if
'下面的再加你自己写吧。
%>

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧