那就把a.php设置为空,在本页提交不就完了!
在里面设置一个隐藏文本框,比如:<input type="hidden" name="cur_form" value="saveinfo">
在提交的时候就用
if request("cur_form")="saveinfo" then
   执行插入语句
  response.redirect "本页的文件"
end if 

解决方案 »

  1.   

    提交给一个隐藏框架
    <iframe name="aimbox" width=0 height=0></iframe>
    <form action="a.php" method="post" target="aimbox">
    </form>
      

  2.   

    当a.php把接到的数据写入数据库之后,在返回到原页面,代码如下:
    echo "<script language=javascript>location.href='1.html';<script>";
    其中1.html就是表单所在的页面
      

  3.   

    1、提交给当前页
    2、XMLHttp提交表单
      

  4.   

    提交给一个隐藏框架 <iframe name="aimbox" width=0 height=0> </iframe> 
    <form action="a.php" method="post" target="aimbox"> 
    </form>