使用一个按钮发送多个表单
我有以下代码,主要是它执行两个操作。 其中的第一个是以电子表格形式呈现数据。 Google 和其他操作 - 演示我的第二种形式 textbox 符合另一页面值 textbox. 怎么做?
[code]<script type="text/javascript">
<!--
function copy_data/val/{
var a = document.getElementById/val.id/.value
document.getElementById/"copy_to"/.value=a
}
//-->
</script>
<style type="text/css">
<!--
-->
</style>
<body>
<script type="text/javascript">var submitted=false;</script>
<iframe id="hidden_iframe" name="response_iframe" onload="if/submitted/{window.location='Thanks.asp';}" style="display:none;"></iframe> <form action="https://docs.google.com/spread ... ot%3B id="commentForm" method="post" onsubmit="submitted=true;" target="response_iframe">
<!-- #include virtual="/sts/include/header.asp" -->
<!-- ABove this Header YJC -->
<table align="center" border="0" style="background-color: #FFC ;" summary="VanaBhojnaluBooking_Table" width="950">
<tr><td colspan="7"><p align="center" class="MsoNormal" style="text-align:center;"><strong><span style="line-height:115%; font-family:'Arial Rounded MT Bold','sans-serif'; font-size:16.0pt; color:#76923C; ">Karthika Masa Vanabhojanalu – Participation Booking</span></strong></p>
<p align="center" class="MsoNormal" style="text-align:center;"><strong><em><span style="line-height:115%; font-size:20.0pt; color:#7030A0; ">13<sup>th</sup> Nov 2011 - @ West Coast Park - Singapore</span></em></strong></p>
<p align="center" class="MsoNormal" style="text-align:center;"><strong><span style="color:#7030A0; ">Reserve your participation and avail </span><span style="color:red; "> <a href="/STS/programs/VB_2011_info.asp" target="_blank"> DISCOUNT </a></span><span style="color:#7030A0; "> on the ticket</span></strong></p></td> </tr>
<tr>
<th scope="col" width="37"> </th>
<th class="YJCRED" rowspan="5" scope="col" valign="top" width="109"><div align="left"><font size="2"> * Required</font></div></th>
<td scope="col" width="68"><div align="right"><font size="2.5px">Name</font><span class="yj"><span class="yjcred">*</span></span></div></td>
<th colspan="3" scope="col"><label for="Name"></label>
<div align="left">
<input class="required" id="entry_0" name="entry.0.single" style="width:487px; height:25px; vertical-align:middle;" title="Enter your name" type="text"/>
</div></th>
<th scope="col" width="223"> </th>
</tr>
<tr>
<td> </td>
<td><div align="right"><font size="2.5px">Phone</font><span class="yj"><span class="yjcred">*</span></span></div></td>
<td width="107"><input class="required" id="entry_1" maxlength="8" name="entry.1.single" onkeypress="return numbersonly/this, event/" onkeyup="copy_data/this/" style="width:100px;height:25px;" title="Handphone Number with out +65" type="text"/></td>
<td width="170"><div align="right"><font size="2.5px">Email</font><span class="yj"><span class="yjcred1">*</span></span></div></td>
<td width="206"><input class="required email" id="required" name="entry.2.single" style="width:190px;height:25px;" title="Enter your email address" type="text"/></td>
</tr>
<tr>
<td> </td>
<td><div align="right"><font size="2.5px">Home Phone</font></div></td>
<td width="107"><input id="entry_100" maxlength="8" name="entry.1.single" onkeypress="return numbersonly/this, event/" style="width:100px;height:25px;" title="Handphone Number with out +65" type="text"/></td>
</tr>
<tr>
<td align="center" colspan="7"><p>
</p>
<p>
<input name="submit" onclick="jQuery.Watermark.HideAll//;" onmouseout="window.status='Press SUBMIT only after proper inforatmion entering then you are Done'" onmouseover="Window.status='You can not see anything';return true" type="submit" value="Submit"/>
</p>
<p> </p></td>
</tr>
<p> </p>
<tr>
<td colspan="25"></td>
</tr>
</table>
</form>
<form action="Sankranthi_Reserv2.asp" method="Link">
<input disabled="" id="copy_to" maxlength="8" name="copy of hp" style="width:100px;height:25px;" type="text"/>
</form>
<p><!-- #include virtual="/sts/include/footer.asp" -->
<input name="pageNumber" type="hidden" value="0"/>
<input name="backupCache" type="hidden" value=""/>
<script type="text/javascript"></script></p></body>
[code]<script type="text/javascript">
<!--
function copy_data/val/{
var a = document.getElementById/val.id/.value
document.getElementById/"copy_to"/.value=a
}
//-->
</script>
<style type="text/css">
<!--
-->
</style>
<body>
<script type="text/javascript">var submitted=false;</script>
<iframe id="hidden_iframe" name="response_iframe" onload="if/submitted/{window.location='Thanks.asp';}" style="display:none;"></iframe> <form action="https://docs.google.com/spread ... ot%3B id="commentForm" method="post" onsubmit="submitted=true;" target="response_iframe">
<!-- #include virtual="/sts/include/header.asp" -->
<!-- ABove this Header YJC -->
<table align="center" border="0" style="background-color: #FFC ;" summary="VanaBhojnaluBooking_Table" width="950">
<tr><td colspan="7"><p align="center" class="MsoNormal" style="text-align:center;"><strong><span style="line-height:115%; font-family:'Arial Rounded MT Bold','sans-serif'; font-size:16.0pt; color:#76923C; ">Karthika Masa Vanabhojanalu – Participation Booking</span></strong></p>
<p align="center" class="MsoNormal" style="text-align:center;"><strong><em><span style="line-height:115%; font-size:20.0pt; color:#7030A0; ">13<sup>th</sup> Nov 2011 - @ West Coast Park - Singapore</span></em></strong></p>
<p align="center" class="MsoNormal" style="text-align:center;"><strong><span style="color:#7030A0; ">Reserve your participation and avail </span><span style="color:red; "> <a href="/STS/programs/VB_2011_info.asp" target="_blank"> DISCOUNT </a></span><span style="color:#7030A0; "> on the ticket</span></strong></p></td> </tr>
<tr>
<th scope="col" width="37"> </th>
<th class="YJCRED" rowspan="5" scope="col" valign="top" width="109"><div align="left"><font size="2"> * Required</font></div></th>
<td scope="col" width="68"><div align="right"><font size="2.5px">Name</font><span class="yj"><span class="yjcred">*</span></span></div></td>
<th colspan="3" scope="col"><label for="Name"></label>
<div align="left">
<input class="required" id="entry_0" name="entry.0.single" style="width:487px; height:25px; vertical-align:middle;" title="Enter your name" type="text"/>
</div></th>
<th scope="col" width="223"> </th>
</tr>
<tr>
<td> </td>
<td><div align="right"><font size="2.5px">Phone</font><span class="yj"><span class="yjcred">*</span></span></div></td>
<td width="107"><input class="required" id="entry_1" maxlength="8" name="entry.1.single" onkeypress="return numbersonly/this, event/" onkeyup="copy_data/this/" style="width:100px;height:25px;" title="Handphone Number with out +65" type="text"/></td>
<td width="170"><div align="right"><font size="2.5px">Email</font><span class="yj"><span class="yjcred1">*</span></span></div></td>
<td width="206"><input class="required email" id="required" name="entry.2.single" style="width:190px;height:25px;" title="Enter your email address" type="text"/></td>
</tr>
<tr>
<td> </td>
<td><div align="right"><font size="2.5px">Home Phone</font></div></td>
<td width="107"><input id="entry_100" maxlength="8" name="entry.1.single" onkeypress="return numbersonly/this, event/" style="width:100px;height:25px;" title="Handphone Number with out +65" type="text"/></td>
</tr>
<tr>
<td align="center" colspan="7"><p>
</p>
<p>
<input name="submit" onclick="jQuery.Watermark.HideAll//;" onmouseout="window.status='Press SUBMIT only after proper inforatmion entering then you are Done'" onmouseover="Window.status='You can not see anything';return true" type="submit" value="Submit"/>
</p>
<p> </p></td>
</tr>
<p> </p>
<tr>
<td colspan="25"></td>
</tr>
</table>
</form>
<form action="Sankranthi_Reserv2.asp" method="Link">
<input disabled="" id="copy_to" maxlength="8" name="copy of hp" style="width:100px;height:25px;" type="text"/>
</form>
<p><!-- #include virtual="/sts/include/footer.asp" -->
<input name="pageNumber" type="hidden" value="0"/>
<input name="backupCache" type="hidden" value=""/>
<script type="text/javascript"></script></p></body>
没有找到相关结果
已邀请:
0 个回复