如何处理从一个HTML发送到另一个HTML的POST数据?

时间:2014-10-07 17:03:19

标签: javascript html forms url post

我将POST表单数据发送到第1页的第2页。

Page_1.html

<head>

    <script type="text/javascript">

        function sendForm()
        {
            document.forms["form1"].submit();
        }

    </script>

</head>

<body>

    <form action="Page_2.html" method="POST" name="form1">

        <input type="hidden" name="t1" value="123">
        <br>
        <input type="button" onClick="sendForm()" id="t2">

    </form>

</body>

现在,我如何检索文本的值&#34; t1&#34;在Page_2.html中?

0 个答案:

没有答案
相关问题