formのsubmitをリンクにするのと、
複数送信ボタンを作成するのを同時にしたときのメモです。
<html>
 <script type="text/javascript">
  function actionA(){
    document.getElementById('form').action = 'aho.cgi';
  }
  function actionB(){
    document.getElementById('form').action = 'aho2.cgi';
  }
</script>
<body>
  <form id='form' name='form' action="../../KAUMONOLIST/CGI/aho.cgi" method="post">
    <a href="javascript:document.form.submit()"  onclick="actionA();">送信1</a>
    <a href="javascript:document.form.submit()"  onclick="actionB();">送信2</a>
  <input type="hidden" name="userid" value="12345">
  <input type="text" name="namae">
</form>
</body>
</html>