PHP submit form causes a 404 in Firefox but works fine in Chrome
<p>I am having issues when a form is submitted instead of a php page being called I get a 404 error. </p>

<p>Both files are in the same directory and I am using PHPStorm as the IDE and Xampp as the php interpreter. Once the submit button is clicked it tries to open the right page: 
<a href="http://localhost:63342/untitled/learn.php" rel="nofollow">http://localhost:63342/untitled/learn.php</a> BUT that just gives a 404 message. Oddly then if I press enter on that URL it does take me to the php page just fine, which is really confusing. This however is not an issue using Chrome and only happens in Firefox. The code I used is shown below:</p>

<p>Html page:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Tutorial page&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;form action="learn.php" method="post"&gt;
    &lt;table border="0"&gt;
        &lt;tr&gt;
            &lt;td&gt;UserName&lt;/td&gt;

            &lt;td align="center"&gt; &lt;input type="text" name="username" size="30"/&gt; &lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td colspan="2" align="center"&gt;&lt;input type="submit" value="Submit"/&gt; &lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;

&lt;/form&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>php page:</p>

<pre><code>&lt;html&gt;
    &lt;head&gt;
    &lt;title&gt;Information gathered&lt;/title&gt;
    &lt;/head&gt;

    &lt;body&gt;
    &lt;?php

    echo "testing this";

    ?&gt;
    &lt;/body&gt;

&lt;/html&gt;
</code></pre>