首页 > 解决方案 > 从引导数据表中的 2 个站点请求数据

问题描述

我有一个带有几页的引导数据表基础。表格的第一个单元格是一个复选框。

该表看起来像这样,只是多了几行。

<table class="table datatable-basic table-hover" >
<thead>
    <tr>
        <th>Status</th>
        <th>Keyword</th>
        <th>Suchvolumen</th>
    </tr>
</thead>
<tbody>
    <tr>
        <td> <input type="checkbox" id="checkboxManuellerStatus1" name="checkboxManuellerStatus[1]"  value="abc"> abc</td>          
        <td class="keywordDataStyle">abc</td>
        <td>abc</td>
    </tr>
<tr>
        <td> <input type="checkbox" id="checkboxManuellerStatus2" name="checkboxManuellerStatus[2]"  value="abc2"> abc</td>         
        <td class="keywordDataStyle">abc</td>
        <td>abc</td>
    </tr>
</tbody>

所有复选框都有递增的名称和 ID。checkboxManuellerStatus1,checkboxManuellerStatus2,checkboxManuellerStatus3,... 等等。

如果我在 php 中请求复选框,我会得到选中复选框的所有值。

$array = $_REQUEST['checkboxManuellerStatus'];

这很好,除了我只获取表中当前页面的值,但我需要所有页面的所有值。我怎么做?

谢谢

标签: phphtmlbootstrap-4

解决方案


推荐阅读