首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

高手哥哥们,帮帮忙嘛,小弟我的这个ASP跳转页面,跳转不起~

2012-03-06 
高手哥哥们,帮帮忙嘛,我的这个ASP跳转页面,跳转不起~~%@LANGUAGE VBSCRIPT CODEPAGE 936 %!DOCTY

高手哥哥们,帮帮忙嘛,我的这个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

热点排行