這是你的作業題吧,這麼簡單的東西,
告訴你,很多方法都可以實現,
先用Onsubmit事件讀取Form的各個Field值,再
document.write或用innerHTML

解决方案 »

  1.   

    <html>
    <head>
    <script language="javascript">
    function a() {
    document.form.product1.value = document.form.product.value;
    test.style.display = "inline";
    }
    </script>
    </head><body>
    <form name="form" id="form">
    <table>
    <tr>
    <td>产品:</td>
    <td><input type=text name="product" id="product"></td>
    </tr><tr>
    <td><button onclick="javascript:a();">提交</button></td>
    </tr>
    </table><table>
    <tr>
    <td   id=test style="display:none">提交信息:产品:<input type="text" style="border-style: none" id="product1" name="product1"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
      

  2.   

    十分感谢,我写了一下午了,我是实在想不出来了。错误在form上,我提前把form给结束了,tai gan xie le
      

  3.   

    <html>
    <head>
    <script language="javascript">
    function a() {
    document.form.product1.value = document.form.product.value+"、"+document.form.price.value+"、"+document.form.area.value+"、"+document.form.company.value;
    test.style.display = "inline";
    }
    </script>
    </head><body>
    <form name="form" id="form">
    <table>
    <tr>
    <td>产品:</td>
    <td><input type=text name="product" id="product"></td>
    </tr><tr>
    <td>价格:</td>
    <td><input type=text name="price" id="price"></td>
    </tr><tr>
    <td>出产地:</td>
    <td><input type=text name="area" id="area"></td>
    </tr><tr>
    <td>生产商:</td>
    <td><input type=text name="company" id="company"></td>
    </tr><tr>
    <td><button onclick="javascript:a();">提交</button></td>
    </tr>
    </table><table>
    <tr>
    <td   id=test style="display:none">提交信息:<input type="text" style="border-style: none" id="product1" name="product1"></td>
    </tr>
    </table>
    </form>
    </body>
    </html>