title: Detect xhr progress of php form with javascript
body: <p>I have a form with action php on submit</p>
  <pre><code>&lt;form method=&quot;POST&quot; action=&quot;action.php&quot;&gt;
    &lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;
    &lt;input type=&quot;submit&quot; value=&quot;submit&quot; /&gt;
  &lt;/form&gt;
  </code></pre>
  <p>this form on submit will load the page on executing the request;</p>
  <p>What i want is with javascript, to detect the progress of the request to show user that his submit form is at N %; cause if i have a big treatment in my php, the user will not know where is the progress of his form; if using ajax we can catch the progress of request but with the case of only php form, i have no idea on how to catch the progress</p>