急!!!!关于表单onClick和传值的问题?在线等。。。。

swordsman2000 2004-02-04 08:34:14
<form action="updatabase.asp" method="post" name="form1" id="form1">
<table width="60%" border="1">
<caption><b>升级数据库</b></caption>
<tr>
<td>请选择升级的月份:</td>
<%
set rs1=server.createobject("ADODB.recordset")
sql="select * from xxf_date order by ymonth"
rs1.open sql,conn,3,1
%>
<td><select name="ymonth">
<%do while not rs1.eof%>
<option value="<%=trim(rs1("ymonth"))%>"><%=trim(rs1("date"))%></option>
<%rs1.MoveNext
loop
rs1.close
set rs1=nothing
conn.close
set conn=nothing
%>
</select>
<input type="button" value="新建..." onClick="window.open('adddate.asp','_self')"></td></tr>
<tr>
<td>请选择要升级的数据库:</td>
<td><label>
<input name="table_name" type="radio" value="ip" checked>
升级总表</label>
<br>
<label>
<input type="radio" name="table_name" value="ipxd">
升级详单表</label>
</td>
</tr>
<tr>
<td align="center"><input type="submit" value="添加"></td>
<td align="center"><input type="button" value="删除" onClick="window.open('admdele1.asp?ymonth='+document.form1.ymonth.options[document.form1.ymonth.selectedIndex].value+'&database='+document.form1.table_name.getElementsByName("table_name").value+'&par=manage_ip.asp&class=<%=trim(request("class"))%>&bigclass=<%=trim(request("bigclass"))%>&smallclass=<%=trim(request("smallclass"))%>','_self')"></td>
</tr>
</table>
</form>


请问“删除”的onClick到底错在那里?
...全文
306 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,406

社区成员

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

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