本人是一超级菜鸟. 这是一个修改密码的程序,但出错了,死我都看不出怎么回事,各位高手帮忙看看吧
<% if request("action")="pass" then if request("oldpass")<>session("adminpassword") then %> <script language="javascript">alert('旧密码不正确!');history.back();</script> <% else if request("newpass1")<> request("newpass2") then %>
<script language="javascript">alert('两次输入的密码不相同!');history.back();</script> <% else '这里是出错的地方. 错误类型:Microsoft VBScript 编译器错误 (0x800A0408) 无效字符 /work/work1/jiazheng/news/admin/admin_changekey.asp, line 16 else session("adminpassword")=request("newpass1") %> <script language="javascript">alert('密码更改完成!');history.back();</script> <% end if
end if end if %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>修改密码</title> </head>
<body> <center> <p> </p> <p><h1>修改密码</h1></p> <hr> <p> </p> <table width="275" align="center"> <form action="admin_changekey.asp?action=pass" method="post"> <tr> <td width="91">输入原密码:</td> <td width="168"><input type="password" name="oldpass" size="25"></td> </tr> <tr> <td>输入新密码:</td> <td><input type="password" name="newpass1" size="25"></td> </tr> <tr> <td>验证新密码:</td> <td><input type="password" name="newpass2" size="25"></td> </tr> <tr align="center"> <td colspan="2"><input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"></td> </tr> </form> </table> </center> </body> </html>