我有预告:
foreach( $playerHouses as $house ) :
echo "<tr><th>$house[id]</th><td>$house[houseNumber]</td></tr>";
endforeach;
我想用href a href="myfile.php?v=houses&id[]=1&id[]=2"
创建按钮
(1,2)房屋id,foreach ..
我该怎么做?现在我有了
echo "<a href='myfile.php?v=houses'>click me</a>";
答案 0 :(得分:2)
@Amid Kumar几乎就在那里,但我理解OP希望void BTSettingsTab::accept()
{
...
QDialog::accept();
}
作为数组传递。因此,他的回答应该修改为
id
答案 1 :(得分:0)
做这样的事情:
$url = "myfile.php?v=houses";
foreach ($playerHouses as $key => $value)
{
$url .= '&id='.$value['id'];
}