| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 711 人关注过本帖
标题:[求助]多个表单提交问题
取消只看楼主 加入收藏
himiller
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-5-4
收藏
 问题点数:0 回复次数:1 
[求助]多个表单提交问题

下面是代码,表单里的数据不能接收,谁能帮我(新手)改改,谢谢!

<body>
<table width="750" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="750" height="100"><form id="form1" name="form1" method="post" action="">
<label>a
<input name="a" type="text" id="a" />
</label>
+
<label>b
<input name="b" type="text" id="b" />
</label>
</form>
</td>
</tr>
<tr>
<td height="100"><form id="form2" name="form2" method="post" action="">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
</td>
</tr>
</table>
<%
Dim a,b,c
a=Request.Form("a")
b=Request.form("b")
c=CInt(a)+CInt(b)
Response.Write "a+b的和="&CStr(c)
%>
</body>
</html>

搜索更多相关主题的帖子: 表单 label name form 
2007-05-04 20:05
himiller
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2007-5-4
收藏
得分:0 

我用了楼上的代码,但是点“提交”后说“由于网页地址不正确,正在查找的网页无法显示。”
版主能不能解释下啊,谢谢

2007-05-09 17:43
快速回复:[求助]多个表单提交问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016325 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved