主题:同一个form表单内,2个按钮分别执行不同的asp的action?
<form name="form2" method="post">
<table width="585" border="0" align="center">
<tr>
<td width="520">
<input type="text" name="textfield" />
<input name="seach" type="button" value="查询">
<input name="edit" type="button" value="修改">
</td>
</tr>
</table>
</form>
[color=FF0000]
[size=5]代码大致如上:
就是说,如果要在文本域上输入一字符串,然后按相应的按钮后会执行不同的操作,也就是要进入相应的文件,如按查询的话要跳转到query.asp,如按修改的话要跳转到modify.asp,同时我们也要得到这个文本的值,以便接一下要用,也就是要查询,修改.
谢谢![/size][/color]
<table width="585" border="0" align="center">
<tr>
<td width="520">
<input type="text" name="textfield" />
<input name="seach" type="button" value="查询">
<input name="edit" type="button" value="修改">
</td>
</tr>
</table>
</form>
[color=FF0000]
[size=5]代码大致如上:
就是说,如果要在文本域上输入一字符串,然后按相应的按钮后会执行不同的操作,也就是要进入相应的文件,如按查询的话要跳转到query.asp,如按修改的话要跳转到modify.asp,同时我们也要得到这个文本的值,以便接一下要用,也就是要查询,修改.
谢谢![/size][/color]