谁来帮帮我:如何能用一个submit同时提交两个选择题的答案?谁能帮我看一下代码需要修改一下什么地方,在这里先跪谢了!

soluma 2003-06-07 02:27:05
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript">
<!--
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<link rel="stylesheet" type="text/css" href="style.css">

</head>
<body bgcolor="#FFFFFF">
<font size="2">
<table width="123" cellspacing="0" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" >
</table>
</font>
<form method="post" action="vote.asp" name="vote">
<table width="490" cellspacing="0" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" >
<tr bgcolor="#FFCC99">
<td height="25" width="480">
<div align="center"><font size="5"><b>您上网经常</b></font></div>
</td>
</tr>
<tr>
<td width="480">
<p align="left"> <font size="4"> <br>
<input type="radio" name="selected" value="1">
满意<br>
<br>
<input type="radio" name="selected" value="2"> 较满意<br>
<br>
<input type="radio" name="selected" value="3">
一般<br>
<br>
<input type="radio" name="selected" value="4">
不满意<br>
<br>
<input type="radio" name="selected" value="5">
很不满意<br>
<br>
<input type="radio" name="selected" value="6">
其 它<br>
</font>
<font size="2">
<br>
</p>
</td>
</tr>





</table>
</form>
<font size="2">
<table width="123" cellspacing="0" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" >
</table>
</font>
<form method="post" action="vote2.asp" name="vote2">
<table width="491" cellspacing="0" cellpadding="3" bordercolorlight="#000000" bordercolordark="#FFFFFF" border="1" >
<tr bgcolor="#FFCC99">
<td height="25" width="481">
<div align="center"><font size="5"><b>您play经常</b></font></div>
</td>
</tr>
<tr>
<td width="481">
<p align="left"> <font size="4"> <br>
<input type="radio" name="selected" value="1">
满意<br>
<br>
<input type="radio" name="selected" value="2"> 较满意<br>
<br>
<input type="radio" name="selected" value="3">
一般<br>
<br>
<input type="radio" name="selected" value="4">
不满意<br>
<br>
<input type="radio" name="selected" value="5">
很不满意<br>
<br>
<input type="radio" name="selected" value="6">
其 它<br>
</font>
<font size="2">
<br>
</p>
</td>
</tr>
<tr>
<td width="481">
<div align="center">


<input type="submit" value="投票" name="submit">

</div>
</td>
</tr>












<tr bgcolor="#FFCC99">
<td width="481">
<div align="center"></div>
</td>
</tr>
</table>
</form>
<font size="2"> </font>
</body>
</html>
------------------------------
以上是我的代码,而且我已经写好相应的vote.asp和vote2.asp两个文件了,可为什么只能成功提交后面那个问题的答案确无法同时提交前面的那个,我该如何修改一下呢
在线求助于高手,分数不够还可继续加
谢了
...全文
35 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
tsoukw 2003-06-07
  • 打赏
  • 举报
回复


<input type="button" value="投票" name="submit" onclick="form1.submit();window.focus();form2.submit();">
soluma 2003-06-07
  • 打赏
  • 举报
回复
还有谁能帮帮我呀
我还没解决呢:(
soluma 2003-06-07
  • 打赏
  • 举报
回复
mmx166(飞翼) 是在用同一个数据库文件接收呀
soluma 2003-06-07
  • 打赏
  • 举报
回复
960379(文物) (还是不行呀


55555555555555555555:(
wxflywing 2003-06-07
  • 打赏
  • 举报
回复
两个选择题不能用一个文件接收吗?
fason 2003-06-07
  • 打赏
  • 举报
回复
关键在这里啊,看来你还没改回来
<form target="_blank">提交到新的网页中
960379 2003-06-07
  • 打赏
  • 举报
回复
好像看到这种方法:
<form name=form1 method=post action=... onsubmit="form2.submit();">

<input type=submit value="" onclick="form1.submit();">
soluma 2003-06-07
  • 打赏
  • 举报
回复
caoshangfei(草上飞) 你还在吗?
我根据你的修改了代码后,怎么现在能提交第一个了,第二个表单确无法提交了
555555555555555555
好奇怪
soluma 2003-06-07
  • 打赏
  • 举报
回复
还是不行呀,仍然只提交了第二个表单的,第一个表单的答案还是无法提交上去呀
fason 2003-06-07
  • 打赏
  • 举报
回复
不能同时在本页提交,至少一个form的target是"_blank" 或其它
caoshangfei 2003-06-07
  • 打赏
  • 举报
回复
<input type="button" value="投票" name="submit" onclick="form1.submit();form2.submit();">
fason 2003-06-07
  • 打赏
  • 举报
回复
你的提交按钮是第二个表单的
试试这样


<form method="post" action="vote.asp" name="vote" target="_blank">

....
....

<input type="submit" value="投票" name="submit" onclick="document.vote.submit()">

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧