我动态与PHP创建组合框的日历:动态组合框名作为PHP数组
<?php $i=1; while($i <= $daysInMonth){?>
<table align="center" style="width: 435px">
<tr>
<td class="style1"><p><label id="<?php echo($month.'-'.$i); ?>"><?php echo($month.' '.$i); ?></label> </p></td>
<td class="style1"><p><select name="<?php echo($i); ?>" multiple="multiple">
<?php foreach($email_array as $arr){ ?>
<option><?php echo($arr); ?></option>
<?php } ?>
</select></p></td>
</tr>
</table>
每个组合框的名称与对应月份的一天。对于每个月的每一天,我想提供分配多个名称的功能。我已经能够实现这一点,除了我无法从每个组合框中获取多个名称,只有一个。这是因为组合框被命名为:
<select name="<?php echo($i); ?>
相反,我需要的名称是一个数组。如何在阵列中放置一个名称并同时保持一周中的日子($ i)?
谢谢!
非常感谢你! – littleK 2010-07-19 18:59:06