<Script language=javascript>
function doSubmit(fm)
{
if(fm.change2[1].checked)
{
window.open("","newwin");
fm.target = "newwin";
fm.action = "2.asp";
}
else
fm.action = "1.asp";
return true;
}
</script><form method=post name=fm onSubmit="return doSubmit(this);">
<table align="center" border="0" width="200">
<tr><td align="center" height="20"><%=store_id%>
</td>
</tr>
<tr><td align="center" height="20">
<select name="select">
<% if not rs.eof then
do while not (rs.eof or rs.bof)
response.write("<option value='" +rs("inventory_date")+"'>")
response.write(rs("inventory_date"))
rs.movenext
loop
end if
%>
</select>
</td>
</tr>
<tr>
<td align="center" height="20">
<input type = "radio" value = "show" name = "change2" checked><font color="#FF0000" size="3"> 操作1 </font>
<input type = "radio" value = "hide" name = "change2" ><font color="#FF0000" size="3">操作2 </font>
</td></tr>
<tr>
<td align="center" height="20">
<input type="submit" value="确定" >
</td>
</tr>
</table>
</form>
function doSubmit(fm)
{
if(fm.change2[1].checked)
{
window.open("","newwin");
fm.target = "newwin";
fm.action = "2.asp";
}
else
fm.action = "1.asp";
return true;
}
</script><form method=post name=fm onSubmit="return doSubmit(this);">
<table align="center" border="0" width="200">
<tr><td align="center" height="20"><%=store_id%>
</td>
</tr>
<tr><td align="center" height="20">
<select name="select">
<% if not rs.eof then
do while not (rs.eof or rs.bof)
response.write("<option value='" +rs("inventory_date")+"'>")
response.write(rs("inventory_date"))
rs.movenext
loop
end if
%>
</select>
</td>
</tr>
<tr>
<td align="center" height="20">
<input type = "radio" value = "show" name = "change2" checked><font color="#FF0000" size="3"> 操作1 </font>
<input type = "radio" value = "hide" name = "change2" ><font color="#FF0000" size="3">操作2 </font>
</td></tr>
<tr>
<td align="center" height="20">
<input type="submit" value="确定" >
</td>
</tr>
</table>
</form>
window.open("","newwin");
fm.target = "newwin";
这两句是将表单提交的内容放到新打开的窗口(newwin)中,所以可以视你的情况把这两句删掉也行。
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
button {background-image:url(biaoshi.gif)}
</style></head><body style='overflow:scroll;overflow-y:hidden' >
<form name="form1" method="post" action="">
<p>
<label>
<input type="radio" name="rad" value="单选" onClick="document.form1.action='1.jsp';">
提交到1.jsp</label>
<br>
<label>
<input type="radio" name="rad" value="单选" onClick="document.form1.action='2.jsp';">
</label>
<label>提交到2.jsp</label>
<br>
</p>
<input type="submit" name="Submit" value="提交" class="button">
</form>
</body>
</html>