one button two actions
<p>i want to submit data from one button in the databse and the same button should export
the CSV of the databse, i tried but it doesn't work only dat is being sent 
i have two buttons </p>

<pre><code>&lt;div class="mws-form-item large"&gt;
&lt;input type="submit" class="button" name="submit1" value="Generate Serials" /&gt;
&lt;a href="get_csv.php" style="text-decoration:none"&gt;
&lt;input type="button" name="get_csv" value="Export CSV"/&gt;&lt;/a&gt;
&lt;/div&gt;

and tried the in the following way
&lt;div class="mws-form-item large"&gt;
&lt;a href="get_csv.php" style="text-decoration:none"&gt;
&lt;input type="submit" class="button" name="submit1" value="Generate Serials" /&gt;
&lt;/a&gt;
&lt;/div&gt;
</code></pre>
