Hello,
I am dynamically creating combo boxes with PHP for a calendar:
<?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>
Each combo box name corresponds with the day of the month. For each day of month, I want to provide the ability to assign multiple names. I have been able to achieve this except for the fact that I cannot get multiple names from each combo box, only one. This is because the combo box is named as:
<select name="<?php echo($i); ?>
Instead, I need the name to be an array. How can put a name in the array and at the same time keep the days of the week ($i) in place?
Thanks!