asp参数传递问题!
我有一个html,为spcx.html,里面有 查询 和导出 按钮 , 如何在输入 商品编码后,按查询就执行查询,按导出就执行导出
<html>
<head>
<title> 商品查询 </title>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 "> </head>
<body scroll= "no " onload= "form1.submit() ">
<form method= "get " action= "spcx.asp " target= "right2 " name= "11 ">
<table>
<tr>
<td>
<font face= "Arial "> <span style= "font-size: 9pt; font-weight:
700 "> 商品编号: </span>
</font> <input type= "text " name= "spbh " size= "10 " >
</td>
<td>
<font face= "Arial "> <span style= "font-size: 9pt; font-weight:
700 "> 商品名称: </span>
</font> <input type= "text " name= "spmch " size= "10 " >
</td>
<td>
<font face= "Arial "> <span style= "font-size: 9pt; font-weight:
700 "> 助记码: </span>
</font> <input type= "text " name= "zjm " size= "10 " >
</td>
<td>
<input type= "submit " value= "查询 " name= "name1 " style= "height: 18; border: 1px solid
#6699FF; background-color:#CEDEFF ">
</td>
<td>
<input type= "button " name= "导出 " value= "导出 " style= "height: 18; border: 1px
solid #6699FF; background-color:#CEDEFF "onclick= "window.location= 'spcxxls.asp ' ">
</td>
</tr>
</table>
</form>
</html>
------解决方案-------------------- <form action= "select.asp ">
<input name= "zjm ">
<input type= "submit " value= "查询 " >
<input type= "button " value= "导出 " onclick= "this.form.action= 'output.asp ';this.form.submit() ">
</form>