用Js解决在同一个form里面两个按钮提交到不同的action
<form id="xxxFrom" action="chaxun.action">
... <input type="submit" value="查询" /> <input type="button" value="删除" onclick="del();"> </form><script type="text/javascript">
function del(){
document.forms.xxxFrom.action="shanchu.action";
document.forms.xxxFrom.submit();
}
</script>
1