我想在while循环中传递一组复选框中的复选框。请帮我。
这是我的代码:
$Q="
select
id,
name
from
dwincperiod
where
`bid`='$bid'
and (
(
month(`fromdate`)='$month'
and year(`fromdate`)='$year'
)
or (
month(`fromdate`)='$mon'
and year(`fromdate`)='$year'
)
or (
month(`fromdate`)='$mnt'
and year(`fromdate`)='$year'
)
)";
$R = mysql_query($Q);
while ($ROW = mysql_fetch_array($R)) {
$i++;
$id = $ROW[id];
$name = $ROW[name];
echo '<input type="checkbox" name="incperiod' . $i . '" value="' . $id . '">' . $name . "<br/>";
echo '<input type="hidden" name="id" value="' . $id . '">';
}