Skip to content

Commit 60697c2

Browse files
committed
docs: fix sample code
1 parent 6815f3f commit 60697c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_guide_src/source/helpers/form_helper.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ The following functions are available:
504504

505505
Example::
506506

507-
<input type="checkbox" name="mycheck" value="1" <?= set_checkbox('mycheck', '1') ?>>
508-
<input type="checkbox" name="mycheck" value="2" <?= set_checkbox('mycheck', '2') ?>>
507+
<input type="checkbox" name="mycheck[]" value="1" <?= set_checkbox('mycheck', '1') ?>>
508+
<input type="checkbox" name="mycheck[]" value="2" <?= set_checkbox('mycheck', '2') ?>>
509509

510510
.. php:function:: set_radio($field[, $value = ''[, $default = false]])
511511

0 commit comments

Comments
 (0)