0

我创建了一个列表框如下

echo "<select name="listbox1"  multiple>";
echo "<option value="0">-Select-</option>";
foreach ($Details as $Id => $Name) {
    echo "<option value="$Id">$Name</option>";
 }
 echo "</select>";

现在我想检索我尝试这些的值

$retrievelist['listbox1']= $this->input->post('listbox1'); 
var_dump($retrievelist);

仅显示所选项目中的第一项。提前致谢

4

1 回答 1

1

将此更改echo "<select name="listbox1" multiple>";echo "<select name="listbox1[]" multiple>";

于 2013-08-13T10:22:34.403 回答