Why is my PHP not detecting my submit button press and thus not executing my function?
<p>I have the following HTML like halfway down my index.php page:</p>

<pre><code>&lt;form action="" method="post"&gt;&lt;input type="submit" value="Reset Game" class="reset-button" title="Admitting defeat?"&gt;&lt;/form&gt;
</code></pre>

<p>At the top of my page, I have the following check:</p>

<pre><code>if (isset($_POST["submit"]) {
    if ($_POST["submit"] === "Reset Game"] {
        $_SESSION["word"] = generate_word("dictionary.txt");
        $_SESSION["word-progress"] = turn_to_underscores($_SESSION["word"]);
    }
}
</code></pre>

<p>Which generates the word for my hangman game, as well as the underscored version. Here are those functions:</p>

<pre><code>    /**
     * Generate a random word from the given dictionary file
     * @param $filename Name of the dictionary file
     * @return Random word
     */
    function generate_word($filename) {
        $dictionary_file = new SplFileObject($filename);
        $dictionary_file-&gt;seek(rand(0, 80367));

        return trim($dictionary_file-&gt;current());
    }

    /**
     * Accepts a word and returns it as underscores for obfuscation
     * @param $word A given word
     * @return Returns the word as underscores
     */
    function turn_to_underscores($word) {
        $underscored_word = "";

        for ($i = 0; $i &lt; strlen($word); $i++) {
            $underscored_word .= "_";
        }

        return $underscored_word;
    }
</code></pre>

<p>Which I bring in with a <code>require "functions.php";</code> call.</p>

<p>What exactly am I doing wrong?</p>
