ASP表单提交出错。急急

当我制作完一个提交表单后,我想浏览,然后输入一些信息,点击提交,结果出现了如下的信息,Anerroroccurredontheserverwhenprocessingth... 当我制作完一个提交表单后,我想浏览,然后输入一些信息,点击提交,结果出现了如下的信息,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.
我不知道该怎么办,都说是程序错了 ,请高手指点啊,我很急用的。
程序如下:<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<body>
<div align="center">
<p class="STYLE1">用户登录 </p>
</div>
<hr size="5" />
<table width="344" height="87" border="1" align="center">
<tr>
<td width="84" bgcolor="#B2B2B2"><span class="STYLE2">用户名:</span></td>
<td width="244" bgcolor="#B2B2B2"><form id="form1" name="form1" method="post" action="Untitled-2.asp">
<div align="center">
<input name="UserName" type="text" id="UserName" value="" />
</div>
</form> </td>
</tr>
<tr>
<td bgcolor="#B2B2B2"> <span class="STYLE2">用户密码:</span></td>
<td align="center" bgcolor="#B2B2B2"><form id="form2" name="form2" method="post" action="Untitled-2.asp">
<label>
<input name="UserPass" type="password" id="UserPass" value="" />
</label>
</form>
</td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#B2B2B2"><form id="form3" name="form3" method="post" action="Untitled-2.asp">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
<label>
 
<input type="reset" name="Submit2" value="重置" />
</label>
</form>
</td>
</tr>
</table>
<p> </p>
</body>
</html>
第二篇
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.STYLE1 {font-size: 36px}
.STYLE2 {font-size: 24px}
-->
</style></head>
<body>
<div align="center"><span class="STYLE1">示例:接受表单的信息</span></div>
<hr size="5" />
<p> </p>
<p align="center" class="STYLE2">接收到以下信息:
<%UserName=Requset("UserName")
UserPass=Request("UserPass") %></p>
<p align="center" class="STYLE2">用户名:<%= UserName %></p>
<p align="center" class="STYLE2">密码:<%= UserPass %></p>
</body>
</html>
展开
 我来答
363822803
2009-11-24 · TA获得超过388个赞
知道小有建树答主
回答量:90
采纳率:0%
帮助的人:80.8万
展开全部
form表单写的不对。
这样试试:
<html>
<head>
<title>无标题文档</title>
<body>
<div align="center">
<p class="STYLE1">用户登录 </p>
</div>
<hr size="5" />
<form id="form1" name="form1" method="post" action="Untitled-2.asp">
<table width="344" height="87" border="1" align="center">
<tr>
<td width="84" bgcolor="#B2B2B2">
<span class="STYLE2">用户名:</span>
</td>
<td width="244" bgcolor="#B2B2B2">
<div align="center">
<input name="UserName" type="text" id="UserName" value="" />
</div>
</td>
</tr>
<tr>
<td bgcolor="#B2B2B2">
<span class="STYLE2">用户密码:</span>
</td>
<td align="center" bgcolor="#B2B2B2">
<input name="UserPass" type="password" id="UserPass" value="" />
</td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#B2B2B2">
<input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" />

</td>
</tr>
</table>
</form>
</body>
</html>
你的网页写的好乱,提交按钮只能提交他的父表单的内容,你却用了三个,很显然无法提交用户名和密码的信息,所以要把提交按钮和提交表单写在一个form表单里,而且你的接受页面里还有拼写问题request。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
wordpress主题源码
2009-11-24 · TA获得超过192个赞
知道答主
回答量:44
采纳率:0%
帮助的人:25.4万
展开全部
很明显你第一个文件里不止一个form,所以出错
再说你的代码实在太乱了。所以我做了一个简单的供你参考。代码如下:
-----------------------------
sent.asp
------------------------------
<html>
<head>
<title>sent she message</title>
</head>
<body>
<form action="get.asp" method="post">
用户名:<input type="text" name="id" /><br />
密码:<input type="password" name="pwd" /><br />
<input type="submit" value="提交" />
</form>
</body>
</html>

---------------------------
get.asp
---------------------------
<html>
<head>
<title>get she message</title>
</head>
<body>
<p>用户名是:<%=request("id")%></p>
<P>密码是:<%=request("pwd")%></P>
</body>
</html>
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
vingoshi
2009-11-25 · 超过103用户采纳过TA的回答
知道小有建树答主
回答量:337
采纳率:0%
帮助的人:286万
展开全部
你要那么多FORM干嘛
而且 提交一个FORM需要一个提交按钮 不然你怎么点击都无法提交数据的
先把你的那么多FORM就留下一个放在最外面
然后UserName=Requset.form("UserName")
不然没值的
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
尽洋亿子
2009-11-24 · TA获得超过1502个赞
知道小有建树答主
回答量:652
采纳率:0%
帮助的人:492万
展开全部
UserName=Requset("UserName")
改为
UserName=Requset("UserName")
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式