Form plugin / conversion of form to JSON

Hi,
I would need to convert/translate the form I'm submitting to JSON ( to send it to something else )
Is there a way to do this ? I searched into the form plugins but nothing related I think
Thanks for your insights
Lionel
 
yes, it was to check if I was not missing something and the job was not done already....
it happens that finally, I need it in Javascript before the submission,
here is below some code for benefits of the forum if it can help someone !
thanks


var params = '{';
for( var i=0; i<document.form_1.elements.length; i++ )
{
var fieldName = document.form_1.elements.name;
var fieldValue = document.form_1.elements.value;

params += '"' +fieldName + '":"' + fieldValue + '",';
}
params = params + '}';


where form_1 is the name of your form....
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top