Pass a table to php for processing?

web data interaction, I know two
1.form forms
2. Construct a link that contains? After clicking on the name=value, you can pass the data.

now I have a table, how to pass it to the background

<form method="post" action="receive.php">
<table>
<tr>
    <td>test1</td>
    <td>test2</td>
</tr>
<tr>
    <td>test3</td>
    <td>test4</td>
</tr>
</table>   
</form> 

how do I do this?
checked the information, and it seems that you can only do, dataForm, dataForm.append through ajax
excuse me, can I do it without ajax?

Jul.20,2021

submit form without passing ajax , put Hidden Field


form submission:

<form method="post" action="receive.php">
<table>
<tr>
    <td><input type="text" name="test1" value="test1" style="border:0;width:40px;"></td>
    <td><input type="text" name="test2" value="test2" style="border:0;width:40px;"></td>
</tr>
<tr>
    <td><input type="text" name="test3" value="test3" style="border:0;width:40px;"></td>
    <td><input type="text" name="test4" value="test4" style="border:0;width:40px;"></td>
</tr>
</table>
<button type="submit"></button>   
</form>

ajax submit

$("td").each(function(){
    
});

Menu