RE: [PHP] Not losing variables in forms w/ checkboxes
| From: | scott [gts] | Date: | Fri, 18 May 2001 19:40:44 +0000 |
| Subject: | RE: [PHP] Not losing variables in forms w/ checkboxes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53479@lists.php.net to get a copy of this message | ||
you need to specify those extra braces for any
multi-select HTMl object
i had the same problem with a:
<SELECT NAME="..." MULTIPLE>
> -----Original Message-----
> From: Johnson, Kirk [mailto:kjohnson@zootweb.com]
> Subject: RE: [PHP] Not losing variables in forms w/ checkboxes
>
> Just append a pair of brackets to the NAME in the FORM: suspendingAgent[].
> This will create an array for the boxes that get checked.
>
> To get the array to a comma separated list on the processing page, try:
>
> $string = implode (",", $suspendingAgent);
>
> Kirk