We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d54aae commit f30e563Copy full SHA for f30e563
docs/wiki/API-Form-Elements.md
@@ -330,6 +330,16 @@ Resources:
330
<input type="checkbox" name="checkbox" value="value" />
331
```
332
333
+Input arrays are supported. The following will return an array `['cars'=>['audi', 'bmw']]`.
334
+
335
+```html
336
+<form action="/" method="post">
337
+ <input type="checkbox" name="cars[]" value="audi" checked />
338
+ <input type="checkbox" name="cars[]" value="bmw" checked />
339
+ <input type="checkbox" name="cars[]" value="volkswagen" />
340
+</form>
341
+```
342
343
Resources:
344
[whatwg](https://html.spec.whatwg.org/multipage/forms.html#checkbox-state-(type=checkbox))
345
0 commit comments