我的表是这样的:无法提交输入矩阵名
<tr>
<td style="width:5% !important;"><input type="text" style="width:50%" name="CostingSheet[CostingSheetCredits[][pax_adult]]" value="1"></td>
<td style="width:5% !important;"><input type="text" style="width:50%" name="CostingSheet[CostingSheetCredits[][pax_inf]]" value=""></td>
</tr>
,当我提交我得到数组是这样的:
["CostingSheetCredits["]=>
["pax_adult"]=> "2"
["pax_inf"]=> ""
,我想获得这样的事情:
["CostingSheetCredits]=>
[0] =>
["pax_adult"]=> "2"
["pax_inf"]=> ""
我在做什么错?这已经让我感觉好几天了。感谢大家的答复和帮助。
@ MrCkobe我修改了一些部分查看我的编辑 – Ghost 2014-09-22 12:17:33
编辑答案做到了! :D:D:D谢谢! :D – MrCkobe 2014-09-22 12:17:37
@MrCkobe确定男人很高兴它帮助 – Ghost 2014-09-22 12:18:06