When I click my reset game submit button, the former guess is still part of the URL and is submitted as a get request, how do I get rid of it?
<p>I'm making a hangman game. When the user clicks a letter, it gets appended to the url, like <code>guess=G</code> but in the event that I click the reset button (a submit button) the guess will still be in the URL, and the following function fires.</p>

<pre><code>    function reset_game() {
        $_SESSION["word"] = generate_word("dictionary.txt");
        $_SESSION["word-progress"] = turn_to_underscores($_SESSION["word"]);
        $_SESSION["chances-left"] = 9;
        $_SESSION["guesses"] = array();
        $_SESSION["incorrect-guesses"] = array();

        header('Location: index.php');
    }
</code></pre>

<p>This is great, except that because of the GET request still being in the URL, it will submit it as a guess until I click the button one more time.</p>

<p>This is because further down in my code I check if there's a GET request and act on it if there is. Is there a way that I can make it clear the GET request on click of the reset button (sans JavaScript, more so with PHP) instead of having an if statement when it checks if the guess is right? The latter solution sounds... work-aroundy.</p>
