note 27612 added to function.implode
| From: | destes at rack1 dot php dot net | Date: | Thu, 12 Dec 2002 23:26:21 +0000 |
| Subject: | note 27612 added to function.implode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40824@lists.php.net to get a copy of this message | ||
The preceding user believes it is improper to use [] to denote variable names in HTML forms. While
it is perhaps technically against the rules of the HTML spec (and the names should definitely be
enclosed in quotes), it is necessary to do so. If you want the results of a series of checkboxes or
a <select multiple> to be put into an array when the form-handling page loads, its name needs
to have a [] on the end of it. This gives PHP the necessary hint that you're expecting it to
be an array. I know of no other way to give that information to PHP. For more information, go
here:
(combine the two rows of text to get the full URL)
http://www.php.net/manual/en/language.types.array.php
#language.types.array.syntax.modifying
--
http://www.php.net/manual/en/function.implode.php
http://master.php.net/manage/user-notes.php?action=edit+27612
http://master.php.net/manage/user-notes.php?action=delete+27612
http://master.php.net/manage/user-notes.php?action=reject+27612