The question is as follows: there is a MySQL database and a PHP page, n number of forms for entering data into the database is output from the database and, accordingly, each form has its submit button (for example, a list of products in which id , name, price and save button).
I want to make one submit button, not n buttons and click every time to save for each element. I think it’s pointless to spread the code - I don’t ask you to do it for me, send in the right channel the thoughts on this matter, that you need to transfer an PHP array to a script that will parse the array and write it down line by line (in the right direction, I think, or is there a more elegant solution?) To give the simplest example on jquery + ajax + php or php , I think it’s easy to change to fit your needs. Thank you in advance.