A simple Javascript solution will have a function:
function changeAction() { this.action = 'the dynamic action'; return true; }
In the form, you must set the onsubmit event:
<form ... onsubmit="return changeAction();">
To do the same with jQuery, follow these steps:
$(function(){ $('IdOfTheForm').submit(function(){ this.action = 'the dynamic action'; return true; }); });
Guffa
source share