note 77344 added to language.variables.external
| From: | vierubino dot r3m0oFdisB1T at gmail dot com | Date: | Sat, 25 Aug 2007 04:12:14 +0000 |
| Subject: | note 77344 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129776@lists.php.net to get a copy of this message | ||
When you are using checkboxes to submit multiple choices, there is no need to use the complex method
further down the page where you assign a unique name to each checkbox.
Instead, just name each checkbox as the same array, e.g.:
<input type="checkbox" name="items[]" value="foo" />
<input type="checkbox" name="items[]" value="bar" />
<input type="checkbox" name="items[]" value="baz" />
This way your $_POST["items"] variable will return as an array containing all and only the
checkboxes that were clicked on.
----
Server IP: 194.145.210.4
Probable Submitter: 86.5.109.95
----
Manual Page -- http://www.php.net/manual/en/language.variables.external.php
Edit -- https://master.php.net/note/edit/77344
Del: integrated -- https://master.php.net/note/delete/77344/integrated
Del: useless -- https://master.php.net/note/delete/77344/useless
Del: bad code -- https://master.php.net/note/delete/77344/bad+code
Del: spam -- https://master.php.net/note/delete/77344/spam
Del: non-english -- https://master.php.net/note/delete/77344/non-english
Del: in docs -- https://master.php.net/note/delete/77344/in+docs
Del: other reasons-- https://master.php.net/note/delete/77344
Reject -- https://master.php.net/note/reject/77344
Search -- https://master.php.net/manage/user-notes.php