<script>
function my(theform)
{
  if(theform.check1.checked)
    theform.action="ur.asp?id=xxx";   //check1为checkbox的name
  else
    theform.action="sd.asp?id=xxx";
  return true;
}
</script>
<form action="" method="post" onsubmit="return my(this)">
……

解决方案 »

  1.   

    <form name=form1 onsubmit="document.form1.action=(document.form1.mm.checked)?'ur.asp':'sd.asp'">
    <input type=checkbox name=mm><input type=submit></form>
      

  2.   

    <form name=form1 onsubmit="this.action=(this.mm.checked)?'ur.asp':'sd.asp'">
    <input type=checkbox name=mm><input type=submit></form>
      

  3.   

    可我要傳遞的是在we.asp中通過
    a=request.form("a")
    b=request.form("b")
    接受到的參數,可以這樣寫嘛?
    if(theform.check1.checked)
        theform.action="ur.asp?a=a";   //check1为checkbox的name
      else
        theform.action="sd.asp?a=a";
      return true;
      

  4.   

    做好了:    theform.action="sd.asp?a&b&c";