html:
<input type="checkbox" value="1" name="my_checkbox[]">
<input type="checkbox" value="2" name="my_checkbox[]">
<input type="checkbox" value="3" name="my_checkbox[]">
在行动:
$arr= $request->getParameter('my_checkbox[]');
这不起作用。有什么解决办法吗?
html:
<input type="checkbox" value="1" name="my_checkbox[]">
<input type="checkbox" value="2" name="my_checkbox[]">
<input type="checkbox" value="3" name="my_checkbox[]">
在行动:
$arr= $request->getParameter('my_checkbox[]');
这不起作用。有什么解决办法吗?