0

Edit: This was a very specific question but a more general response to using $_REQUEST was given here. Solved!! Thanks @u_mulder and @FirstOne!

Just starting PHP and running through some exercises from PHP & MySQL: The Missing Manual. They have me build this form:

<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>

The PHP script in the page it accesses is this:

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

The list of key and value pairs I get seem normal, except for one extra at the bottom that I can't see anywhere in the code:

For SQLiteManager_currentLangue the value is 2

This appears in chrome, but not firefox. Why is this happening?

Cœur
  • 37,241
  • 25
  • 195
  • 267
James Hamann
  • 842
  • 6
  • 12

0 Answers0