这是我将 ID 发送到 url 的代码的一部分,我需要获取该 ID。但问题是我得到了这样的东西
delete.x=5&delete.y=8&delete=删除&ID=124&ID=125&ID=126&ID=127&ID=128&ID=129&ID=130&ID=131&ID=132&ID=133&ID=134&ID=135&ID=136
它从表中发送我所有的 ID。但我只需要发送一个 ID,这取决于我单击哪个按钮(删除或发布)
<tr>
<td>125</td>
<td>Blacksfeets Photos</td>
<td>di_do@yahoo.com</td>
<td>2929610140-09 M plava.pdf</td>
<td>24</td>
<td>570099</td>
<td>0</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<input name="delete" type="image" src="images/delete.png" value="Delete"><br>
<input name="publish" type="image" src="images/publish.gif" value="Publish">
<input type="hidden" value="125" name="ID">
</td>
</tr>
<tr>
<td>126</td>
<td>TimeSince</td>
<td>sanlic@windowslive.com</td>
<td>25189210140-09 M plava.pdf</td>
<td>24</td>
<td>614227</td>
<td>0</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<input name="delete" type="image" src="images/delete.png" value="Delete"><br>
<input name="publish" type="image" src="images/publish.gif" value="Publish">
<input type="hidden" value="126" name="ID">
</td>
</tr>
<tr>
<td>127</td>
<td>TimeSince</td>
<td>saic@windowslive.com</td>
<td>21813910140-09 M plava.pdf</td>
<td>24</td>
<td>966462</td>
<td>0</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<input name="delete" type="image" src="images/delete.png" value="Delete"><br>
<input name="publish" type="image" src="images/publish.gif" value="Publish">
<input type="hidden" value="127" name="ID">
</td>
</tr>