title: PhpStorm - strange 404 error when using html forms
body: <p>Running PhpStorm 2016.3.2, Ubuntu 16.04 with PHP7 and LAMP stack installed and tested.</p>
  
  <p>I seem to have an error in PhpStorm (or somewhere else down the line), whereby clicking 'Submit' in an html form will result in a '404 not found' error, even if the form action path is valid.</p>
  
  <p>I built a very simple application to demonstrate this, however it should be noted that this error has occurred every time I use an html form in PhpStorm so far, even example applications that I know have no errors in code.</p>
  
  <p>The code for my form is as follows </p>
  
  <pre><code> var $form = &lt;&lt;&lt; FORM
   &lt;form action='?' method="post"&gt;
   &lt;p&gt;Enter your number &lt;/p&gt; 
   &lt;input type="text" name="formInput" 
   maxlength="10"&gt; 
   &lt;input type="submit" name="formSubmit" 
   value="Submit"&gt; 
   &lt;/form&gt; 
   FORM;
  </code></pre>
  
  <p>Once 'Submit' is clicked, the 404 error happens. I have tried multiple permeations of form action such as <code>""</code> and even a variable set to <code>APP_ROOT_PATH</code>, and then just manually typing out the correct path (even a different php file) also with single and double quotes.</p>
  
  <p>The reason I believe these paths to be valid is that simply by clicking in the address window from the 404 error page and hitting enter (thereby going to the path it was trying to get to) the form loads again fine.</p>
  
  <p>I can't get my head around why this might be, if it was a permissions or path error surely I would not be able to access the path from the browser either?</p>
  
  <p>EDIT: Looking at the source code reveals that the action is what I intended it to be. Even copying the url from there and pasting it into the browser will open the correct form. It is just when clicking 'submit' that the 404 error happens. The correct url is also in the address bar on the 404 page. </p>
  
  <p>EDIT 2 : For note, the <code>'?'</code> action in the above code is irrelevant to the issue as the error occurs no matter what correct link I put there, be it <code>""</code> or the full path.</p>