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

『求助』请各位大大帮我看看出什么问题了,在线等
用IIS信息管理器打开我写的那个index.asp页面后出现了以下显示:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error
我的代码如下:(请大大们看看这到底是什么问题呢,谢谢啦)
VBScript code

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>注册登陆系统</title>
<link rel="stylesheet" type="text/css" href="../CSS/index_style.css">
<%
function sub()
if form_index.userNum.value=empty then
    msgbox"请输入用户名!"
elseif form_index.password.value=empty
    msgbox"请输入密码!"
end if
end function
%>
</head>

<body>
<div id="base">
<div id="topline"></div>
<div id="title">用户登录</div>
<div id="warry">注意:您还没有登录,请先登录,新用户需先注册</div>
<hr>
<form action="index.asp" method="post" name="form_index">
<table id="tab">
<tr><td id="user">用户名:</td><td id="text1"><input type="text" id="userNum" name="userNum"></td><td class="h6">*</td></tr>
<tr><td id="pwd">密&nbsp;&nbsp;码:</td><td id="text2"><input type="password" id="password" name="password"></td><td class="h6">*</td></tr>
<tr><td colspan="2"><input type="button" value="确定" src="#" id="btm" name="sub" onClick="sub()"><input type="button" value="注册" src="#" id="btm" name="reg"></td></tr>
<tr><td id="warring"><p id="warring"></p></td></tr>
</table>
</form>
<div id="bottomline"></div>
</div>
</body>
</html>




------解决方案--------------------
你这段代码很多错误 给你一段代码看看吧
<script language="javascript">
function frm_check()
{
if(document.register.uname.value=="")
{
document.register.uname.focus();
alert("用户名称不能为空!");
return false;
}

if(document.register.pwd.value=="")
{
document.register.pwd.focus();
alert("用户密码不能为空!");
return false;
}


if(document.register.pwd1.value!=document.register.pwd.value)
{
document.register.pwd1.focus();
alert("两次密码不一致!");
return false;
}
}
</script>

<form name="register" action="user_register.asp?sign=add" method="post" onSubmit="return frm_check()">
<tr>
<td width="16" height="35"> </td>
<td width="85" height="35" align="right">
<span style="font-size: 11pt">
<font color="#FF0000">*</font><font color="#4F4F4F">用户名</font></span></td>
<td width="351" height="35" align="left" colspan="2">
<font color="#4F4F4F">
<span style="font-size