response.cookies("name")=rs("name") 此为第23行
session("name")=name
session("pass")=pass
session("txtClass")=txtClass
session("anum")=anum
if rs("txtclass")="1" then
response.redirect "index2.htm"
else
response.redirect "index.htm"
end if
本来想改成:
response.cookies("name")=rs("name")
session("name")=name
session("pass")=pass
session("txtClass")=txtClass
session("anum")=anum
SELECT CASE txtclass
CASE "1"
response.redirect "index2.htm"
case "2"
response.redirect "index.htm"
CASE ELSE
response.redirect "index3.htm"
END SELECT
SELECT CASE txtclass
CASE "1"
response.redirect "index2.htm"
case "2"
response.redirect "index.htm"
CASE ELSE
response.redirect "index3.htm"
END SELECT
这里语法错误
SELECT CASE rs("txtclass")
CASE "1"
response.redirect "index2.htm"
case "2"
response.redirect "index.htm"
CASE ELSE
response.redirect "index3.htm"
END SELECT
改成这样试试。