日期:2014-05-17  浏览次数:20901 次

高手哥哥们,帮帮忙嘛,我的这个ASP跳转页面,跳转不起~~
<%@LANGUAGE= "VBSCRIPT "   CODEPAGE= "936 "%>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN "   "http://www.w3.org/TR/html4/loose.dtd ">
<%response.Buffer=true%>
<html>
<head>
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=gb2312 ">
<title> 无标题文档 </title>
</head>

<body>
<form   name= "form1 "   method= "post "   action= " ">
    <p>
        帐号:
            <input   type= "text "   name= "username "   id= "username ">
    </p>
    <p>
密码:
    <input   type= "password "   name= "userpass "   id= "userpass ">
    </p>
    <p>
        <input   type= "submit "   name= "Submit "   value= "登陆 ">
        <input   name= "reset "   type= "reset "     value= "重置 ">
    </p>
</form>
<%        
          if   request.ServerVariables( "request_method ")= "post "   then
        username=request.Form( "username ")
userpass=request.Form( "userpass ")
  if   username= "conquer "   and   userpass= "conquer "   then
          response.redirect( "j2.asp ")
else   if   username= "st "   and   userpass= "st "     then
          response.Redirect( "j1.asp ")
  else
  response.Write( "帐号或密码错误 ")
end   if
end   if
end   if
  %>  
   


</body>
</html>


------解决方案--------------------
if request.ServerVariables( "request_method ")= "POST " then