一个表单form 多个action提交
2009-03-16 15:35
393 查看
代码:
<form name='form1' method='post' action=buy2.asp>
<input type="button" value="继续购物" width="115" height="36" border="0" onClick="location.href='product.asp'">
<input type="button" value="修改数量" width="115" height="36" border="0" onFocus="this.blur()" onClick="this.form.action='buy2.asp?action=add&id=';this.form.submit()">
<input type="button" value="去收银台" width="115" height="36" border="0" onFocus="this.blur()" onClick="this.form.action='buy2.asp?action=linkinfo&id=';this.form.submit()">
</form>
只需要在 button里加上上面那些就可以了,加多少都行,非常方便
<form name='form1' method='post' action=buy2.asp>
<input type="button" value="继续购物" width="115" height="36" border="0" onClick="location.href='product.asp'">
<input type="button" value="修改数量" width="115" height="36" border="0" onFocus="this.blur()" onClick="this.form.action='buy2.asp?action=add&id=';this.form.submit()">
<input type="button" value="去收银台" width="115" height="36" border="0" onFocus="this.blur()" onClick="this.form.action='buy2.asp?action=linkinfo&id=';this.form.submit()">
</form>
只需要在 button里加上上面那些就可以了,加多少都行,非常方便
相关文章推荐
- (转)一个form表单实现提交多个action
- 一个form表单实现提交多个action
- 同一个表单,提交不同的action,使用formaction属性
- 在一个form表单中分别提交到不同action是怎么样提交的
- 一个form表单实现提交多个action
- 表单按回车自动提交 1、当form表单中只有一个<input type="text" name='name' />时按回车键将会自动将表单提交。 <form id='form1' action='a
- 在同一个form表单里有2个按钮,如何各自提交到不同的action里面去。
- (转)一个form表单实现提交多个action
- JS实现一个表单form,多个submit按钮提交时带不同的action参数
- 通过button将form表单的数据提交到action层的实例
- 解决JQuery表单异步提交到action的乱码问题(ajaxform,ajaxsubmit)
- truts2中表单可以不用struts自带的<s:form>标签,直接用html的<form>标签能够提交数据到action
- form表单以get方式提交时action中?后面的参数部分不生效
- 在同一form表单中如何提交两个不同的action
- 在同一form表单中如何提交两个不同的action
- struts form表单提交action处理之后没有跳转页面
- 关于form表单提交,如何跳转到一个带参数的页面
- jsp页面提交form表单,action没进断点,response返回No result defined for action...
- form表单action提交的js部分与html部分
- form表单提交时,action怎么带参数