使用form.action<form name="formname" action="">
<input name="inputname">
<input type="submit" onclick="document.formname.action='a.asp'" value="button a">
<input type="submit" onclick="document.formname.action='b.asp'" value="button b">
<input type="submit" onclick="document.formname.action='c.asp'" value="button c">
</form>

解决方案 »

  1.   

    <input type=button name="a" value="a" onclick="this.form.action='a.asp';this.form.submit();">
    <input type=button name="b" value="b" onclick="this.form.action='b.asp';this.form.submit();">
    <input type=button name="c" value="c" onclick="this.form.action='c.asp';this.form.submit();">
    <input type=button name="d" value="d" onclick="this.form.action='d.asp';this.form.submit();">
      

  2.   

    <form name="form1">
        <input type="submit" name="a" value="a" action="a.asp">a</input>
        <input type="submit" name="b" value="b" action="b.asp">b</input>
        <input type="submit" name="c" value="c" action="c.asp">c</input>
    </form>