title: returning from a form submit call to a .php file
body: <p>I have a questionnaire in a form. In the end of it the submit button is pressed that is supposed to call a .php file that inserts data into a database through its action information and afterwards show the last page that contains something like "thank you for participating etc." via the onsubmit info.</p>
  
  <p>problem is that the last page is shown before the .php file is shown which means it is visible only for like half a second and then the php script is carried out which ends up showing a blank page.</p>
  
  <p>The php script works it inserts data into the questionnaire correctly so there should be no mistakes syntax-wise. </p>
  
  <p>any ideas if I have to exit the cript or something and return to the .html file or what could be wrong?</p>