I have dynamically created forms (there are quite a few different forms with a variable number of input fields) and want to “submit” them via a generic AJAX call to update tables in a MYSQL database (this I can do).
My problem is how to obtain a form's $_POST variables with jquery or javascript so I can json_encode them.
I found a lot of answers but all used the field name's #id to access the data. I have spent over 3 hours googling with no success because I believe I may have been unable to phrase the question correctly.
The closest reply I found was How to retrieve $_POST variable from jquery serializearray() but was unable to relate this to my problem.