http://www.yesky.com/20000329/42524.shtml

解决方案 »

  1.   

    http://tech.sina.com.cn/c/3849.html这两篇写得很详细
      

  2.   

    不好意思啊,你说的,其实就是在结果页面取得表单值,这个直接用PHP就好了。
    如第一个页面tj.php
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>无标题文档</title>
    </head><body>
    <form name="form1" method="post" action="ac.php">
    <table align="center" cellspacing="2" cellpadding="2" border="0">
    <tr>
        <td>First</td>
        <td><input type="text" name="f" ></td>
    </tr>
    <tr>
        <td>Second</td>
        <td><input type="text" name="s" value="This is the second textfield"></td>
    </tr>
    <tr>
    <td><input type="submit" name="submit" value="提交"></td>
    <td><input type="reset"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>第二个页面就是按下submit后的结果页面 ac.php
    ……
    <?php
     echo $HTTP_POST_VARS['f'];
     echo '<br>';
     echo $_POST['s'];
     echo '<br>';
    ?>
    ……
      

  3.   

    页面前头调用以下代码
    <script language="javascript">
    function windowopen()
    {
    document.all.form1.submit;
    newwindow=window.open("","target", "height=210, width=240, toolbar =no, menubar=no, scrollbars=no, resizable=no, location=no, status=no")}
    </script>在表单的地方可以这么引用
    <form  name='form1' action='upload.php'  onsubmit='windowopen()' target=target>
    <td>
    <input  type=hidden name=path value=$path>
    <input type=submit value=上传文件到当前目录>
    </td>
    </form>