You can use JavaScript to the change the action of the form at the onClick event of a button.

Example:
Code: JavaScript
document.forms[0].action = 'somepage.asp';
 document.forms[0].action = 'anotherpage.php';