【发布时间】:2011-06-18 21:19:57
【问题描述】:
我有这样的价值观:
$brands = "1,2,3,4,5"
我有这个:
<input type="checkbox" name="brand[]" value="<?php print"$brand_id"; ?>" /><?php print"$brand_id"; ?>
我想写源代码,所以当$brand_id 是$brands 之一时,复选框选中意味着打印“选中”;
$brands 是可变的,由 php 编写
【问题讨论】: