In order to submit an array of table-like data (sometimes called rectangular data) you are probably best served by encoding the data as a JSON array and submitting that to the server.
You might consider using a front-end framework like Vue.js to drive the render in the client. That way, the client always has the data as an array. Then, once you have made some change, simply JSON encode the data and submit it to your site. Then again, I don't know what your goal is and it is possible that that is far overkill.