Re: Parsing an array from a posted form
| From: | Verdon Vaillancourt | Date: | Wed, 20 Nov 2002 20:14:29 +0000 |
| Subject: | Re: Parsing an array from a posted form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125318@lists.php.net to get a copy of this message | ||
A sincere thanks to John for the prompt and succinct answer. I've seen many
answers from John on this list and am much appreciative of his generosity.
Best regards, verdon :)
On 11/20/02 3:07 PM, "1LT John W. Holmes" <holmes072000@charter.net> wrote:
>> I have a form that is...
...
>> Which will return a count of the number of items in the array. What I want
>> returned is a string of the values selected such as:
>>
>> "eps, gif, other"
>
> $string = implode(",",$graphicFormat);
>
> To see how many checkboxes were selected, use
>
> $num = count($graphicFormat);
>
> ---John Holmes...
>
>