How can I send the POST data from my form to two different pages depending on which post button is clicked?
My "Export" button sends the POST data to 'export.php', but the "Graphique" button must send the POST data to the 'graphique.php' page.
Here is my code:
<form name="TCAgregat" class="TCAgregat" action="export.php" method="post">
<input type="hidden" name="daco" value="<?php echo $DConso; ?>"></input>
<input type="hidden" name="CNS" value="<?php echo $CNewCentres; ?>"></input>
<input type=submit border="0" class="EXP" name="exp" value="EXPORT" />
<input type=submit border="0" class="DCB" name="dcb" value="GRAPHIQUE" />
</form>
How can I achieve this?