但是你可以这样做,你可以先向其中一个提交,再在那个接受数据的页面放一个隐藏的form~~自动再向另外一个程序提交

解决方案 »

  1.   

    用JS就可以呀
    ex:
    <script>
    function dosubmit(){
        tf=document.all("testform");
        tf.action="1.php";
        tf.submit();
        tf.action="2.php";
        tf.submit();
        return false;
    }
    </script>
    <form name=testform onsubmit="return dosubmit()" method=post target="_blank">
    <input type=text name=aaa>
    <input type=submit>
    </form>
      

  2.   

    楼上同志们大错特错,我就曾经做过,现在大家都在用。一个是触发本地的php程序,另一个是触发远程的.php程序。一个用action直接触发,另一个用header数据传值定向,如果你要在提交后,还要回到提交页面,还可以在header定向里面再用一个header定向。不知道大家有没有意见。
      

  3.   

    不好意思,上面的有一句我说错了。"另一个是触发远程的.php程序",应改为"另一个是调用远程的.php程序".这样显得更合理一些.
      

  4.   

    嘿嘿~~~luncif(luncif) 你在tf.action="1.php";
        tf.submit();这里都已经把文件头发给1.php了~~你认为还会执行接下来的代码吗?~~
        
      

  5.   

    to zxyufan(宇凡):你自己测试一下就知道了
      

  6.   

    这个问题可以用js来实现,如下:
    <html>
    <head>
    <script>
    function submitit1()
    //交由程序1处理 
    {
    document.myForm.action = "http://www.site.com/cgi-bin/cgi1.pl"
    document.myForm.submit();

    function submitit2()
    //交由程序2处理 
    {
    document.myForm.action = "http://www.site.com/cgi-bin/cgi2.pl"
    document.myForm.submit();
    }
    </script>
    </head><body>
    <form name="myForm" METHOD=POST>
    username:<input type=text name=text1>
    password:<input type=password name=text2> 
    <input type=button value="Submit 1" onClick="submitit1()">
    <input type=button value="Submit 2" onClick="submitit2()">
    </form>
    </body>
    </html>
      

  7.   

    可以!请你到www.yesky.com到这个网站寻找你所需的资料