Auto submit form before going to next page of form
<p>I have a multi-page form that was created for me. All of the pages on the form have submit button that saves the data to a database, a previous button that goes to the previous page and a next button. The problem is that the data does not save if I click the previous or next links. </p>

<p>How can I set it up so that that submit button is automatically pressed before going to the previous or next page of the form?</p>

<pre><code>&lt;a class="form-buttons" href="&lt;?php echo $prev_url;?&gt;"&gt;Prev&lt;/a&gt;
&lt;div class="form-buttons-middle"&gt;&lt;input type="submit" name="status" value="Save" /&gt;&lt;/div&gt;
&lt;a class="form-buttons" href="&lt;?php echo $next_url;?&gt;"&gt;Next&lt;/a&gt;
</code></pre>

<p>I'm new to programming so any help would be greatly appreciated.</p>

<p>Thanks!</p>
