<form action="" method="post" name="form1">
<input type=text name=t value=hello><br>
<input type=button onclick="c('url1');" value="submit1">
<input type=button onclick="c('url2');" value="submit2">
</form>
<script>
<!--
function c(url) {
var d=document.form1;
d.action=url;
d.submit();
}
//-->
</script>

解决方案 »

  1.   

    <form method=post action="a.asp">
    <input>
    <input type=submit onclick=action="a.asp" value=a>
    <input type=submit onclick=action="b.asp" value=b>
    </form>
      

  2.   

    不知道这样行不?<form method=post name=form1 action="1.asp">
    <form method=post name=form2 action="2.asp"><input type=submit onclick=document.form1.submit() value=form1>
    <input type=submit onclick=document.form2.submit() value=form2></form>
    </form>