We did this before using javascript, as mentioned in other answers, and probably the right way. An alternative, however, is to publish on a single controller method that contains logic to decide where to send form data to.
In fact, you submit the form to the controller and resubmit this data based on the text or button identifier pressed with the if statement in the body of the controller action.
Jonneale
source share