您的位置:首页 > 其它

一个表单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里加上上面那些就可以了,加多少都行,非常方便
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: