I have an editable HTML table, and I'd like to submit the entire table to a PHP page as a single csv variable. The PHP page will then parse the csv and do its thing in the background. I don't want to use a single input per table cell because some of my tables are large and I will quickly run into truncation from POSTing more than 1000 variables. But a csv of the table is not too big and easy for me to parse on the backend.
So I'm looking for a package or method that will take a table like this
<table id="thetable">
<tr>
<td>cellA</td>
<td>cellB</td>
</tr>
<tr>
<td>cellC</td>
<td>cellD</td>
</tr>
</table>
and submit it through POST as a variable, where the resulting variable on the server side would be something like
cellA,cellB\n
cellC,cellD