title: How can i submit form and move to the next page both at a time?
body: <p>part of my HTML code:</p>
  
  <pre><code>&lt;form method="post" id="form"&gt;
  
  &lt;input type="number" min="0" max="20" id="experience" required name="experience"title="experience" class="formfield" /&gt;
  
  &lt;input type="image" id="registersubmit4" name="registersubmit4" src="images/arrow-right.png"  title="next"/&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to submit form when user clicks on next and after submitting, then move to the next page. </p>
  
  <pre><code>&lt;input type="image"&gt;
  </code></pre>
  
  <p>works well for submitting but after submitting i want to move to the next page..</p>
  
  <p>I used javascript for onclick() event as follows:</p>
  
  <pre><code>&lt;input type="image" onclick=form.submit(); "location='next.html'"&gt;
  </code></pre>
  
  <p>this does not work. Please help...Thanks in advance.</p>