使用$ _REQUEST从表单中获取值,然后回显它们,但我得到一个奇怪的额外值

时间:2016-03-06 18:08:32

标签: php

编辑:这是一个非常具体的问题,但是使用$ _REQUEST的更一般的回答是here。解决了!!谢谢@u_mulder和@FirstOne!

刚刚启动PHP并运行PHP&amp ;;的一些练习MySQL:失踪手册。他们让我建立这种形式:

<form action = "scripts/showRequestInfo.php" method = "POST">
            <fieldset>
                <label for "first_name">First Name:</label>
                <input type  = "text" name = "first_name" size = "20" /><br />
                <label for "last_name">Last Name:</label>
                <input type = "text" name = "last_name" size = "20" /><br />
                <label for "email">E-Mail Address:</label>
                <input type = "text" name = "email" size = "50" /><br />
                <label for "facebook_url">Facebook URL:</label>
                <input type = "text" name = "facebook_url" size = "50" /><br />
                <label for "twitter_handle">Twitter Handle:</label>
                <input type = "text" name = "twitter_handle" size = "20" /><br />
            </fieldset>
            <fieldset class = "center">
                <input type = "submit" value = "Join the Club" />
                <input type = "reset" value = "Clear and Restart" />
            </fieldset>
        </form>

它访问的页面中的PHP脚本是:

<?php
            foreach($_REQUEST as $key => $value) {
                echo '<p>For ' . $key . " the value is " . $value . '</p>';
            }
        ?>

我得到的键值和值对的列表看起来很正常,除了底部的一个额外的,我无法在代码中的任何地方看到:

对于SQLiteManager_currentLangue,值为2

这出现在chrome中,但不是firefox。为什么会这样?

0 个答案:

没有答案