Set a form’s action attribute when submitting?
<input type=”submit” value=”Submit” onclick=’this.form.action=”somethingelse”;’ /> Or you can modify it from outside the form, with javascript the normal way: document.getElementById(‘form_id’).action = ‘somethingelse’;