4

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[]');

这不起作用。有什么解决办法吗?

4

1 回答 1

7

How about this:

$arr = $request->getParameter('my_checkbox');
于 2010-08-02T05:29:41.223 回答