<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>
<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>
<input>
<input type=submit onclick=action="a.asp" value=a>
<input type=submit onclick=action="b.asp" value=b>
</form>
<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>