Re: returning values from a multiple select field
| From: | Tod the Fox | Date: | Fri, 06 Oct 2000 16:38:40 +0000 |
| Subject: | Re: returning values from a multiple select field | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18871@lists.php.net to get a copy of this message | ||
<select name=tripselect[] multiple>
<option value=value1>Value 1</option>
<option value=value2>Value 2</option>
<option value=value3>Value 3</option>
</select>
And you will have array
$tripselect in you php code
On Fri, 6 Oct 2000, Sam wrote:
> Hi all,
>
> Sorry to post this question, but I cannot access the php.net web site.
> Also could you reply to my email address, thanks.
>
> I have a multiple select field, how can I retrieve all the values selected?
>
> i.e.
> <select name=tripselect multiple>
> <option value=value1>Value 1</option>
> <option value=value2>Value 2</option>
> <option value=value3>Value 3</option>
> </select>
>
> I get the variable tripselect in my new form, but I can't find out the
> correct way in which to find out all the values of tripselect.
>
> Any help?
>
> Again I apologise as I would have normally used the web site, but it seems
> to be down.
>
> Thanks
>
> Sam Rose
>