combobox - Dynamic combo box name as a php array -


I am dynamically creating a combo box with PHP for the calendar:

  & Lt? Php $ i = 1; While ($ i & lt; = $ daysInMonth) {? & Gt; & Lt; Table row = "center" style = "width: 435px" & gt; & Lt; TR & gt; & Lt; Td class = "style1" & gt; & Lt; P & gt; & Lt; Label id = "& lt ;? php echo ($ month. '-' $ i.);? & Gt;" & Gt; & Lt ;? Php echo ($ month. ''. $ I); ? & Gt; & Lt; / Labels & gt; & Nbsp; & Lt; / P & gt; & Lt; / TD & gt; & Lt; Td class = "style1" & gt; & Lt; P & gt; & Lt; Select name = "& lt ;? php echo ($ i) ;? & gt;" Multiple = "many" & gt; & Lt ;? Php foreach ($ arr_array $ arr) {? & Gt; & Lt; Options & gt; & Lt ;? Php echo ($ arr); ? & Gt; & Lt; / Options & gt; & Lt ;? Php}? & Gt; & Lt; / Select & gt; & Lt; / P & gt; & Lt; / TD & gt; & Lt; / TR & gt; & Lt; / Table & gt;  

Each combo box name matches the day of the month. For each day of the month, I want to give the ability to assign several names. I am able to achieve this by leaving the fact that I can not get many names from each combo box, only one reason is that the name of the combo box is low:

  & lt ; Choose name = "& lt ;? php echo ($ i) ;? & gt;  

Instead, I need an array name. How can I put a name in an array And at the same time can keep the day of the week ($ i)?

Thank you!

Use:

  name = "& lt ;? Php echo ($ i); ? & Gt; [] " 

This will create an array of selected values.


Comments