关于ASP的问题,帮我找一下错误

来源:百度知道 编辑:UC知道 时间:2024/04/28 16:06:28
<%
dim strnomicuowu,strnoycuowu,strnokongcuowu,strnoyancuowu
strnomicuowu="你的密码错误,请输入正确的密码"
strnoycuowu="你的用户名错误,请输入正确的用户名"
strnokongcuowu="请输入用户名.密码和验证码"
strnoyancuowu="请输入正确的验证码"
strusername=request.form("textfield1")
struserpassword=request.form("textfield2")
struseryan=request.form("textfield3")
if strusername="" or struserpassword="" or struseryan"" then
response.redirect "表单3.asp?errormessage="&strnokongcuowu&"&textfield1="&strusername
end if
if strusername="醉酒行风" then
if struserpassword="198954" then
if strnoyancuowu="声撒旦但" then
session("userlevel")=1
response.redirect "main表单4.asp"
else
response.redirect "表单2.asp?errormessage="&strnoyancuowu&"&textfield1="&struserna

错误1:
if strusername="" or struserpassword="" or struseryan"" then
错:struseryan""

错误2:
IF条件逻辑混乱不堪,不知所云
哪有先三个if再三个else再三个end的??
要不就一对一:
if *** then
end if
if *** then
end if

就是一套N:
if *** then

if *** then
end if

else
***
end if

要不就用select case:
select case ***
case "***"
***
case "***"
***
case "***"
***
case else
***
end select

楼上说的是啊 不过IF这好象没有太大的错误就是少点ELSE可能是个初级的编程者把错误一:怎么跳转还用汉字
错误二:上面已经给负值了到下面判断为什么没有用而是用的汉字跳转 大错特错
错误三:IF语句有那么写的吗 第一次看到哦 ...........