Re: Bug #1117: <SELECT MULTIPLE> doesn't work
| From: | Lars Torben Wilson | Date: | Wed, 03 Feb 1999 20:57:24 +0000 |
| Subject: | Re: Bug #1117: <SELECT MULTIPLE> doesn't work | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-3867@lists.php.net to get a copy of this message | ||
winfried.bantel@usa.net writes:
> From: winfried.bantel@usa.net
> Operating system: Linux and Apache
> PHP version: 3.0 Latest CVS (03/02/1999)
> PHP Bug Type: Misbehaving function
> Bug description: <SELECT MULTIPLE> doesn't work
>
> I've HTML-Code like
>
> <select name="top70s" size=5 multiple>
> <option> Sweet
> <option> T.Rex
> <option> Slade
> <option> Mud
> <option> Bay City Rollers
> </select>
>
> so i can highlight multiple items.
> Im my HTTP_GET_VARS i only get the lates value!?!?!
Try doing this instead:
<select name="top70s[]" size=5 multiple>
...[snip]...
</select>
What you have above tries to give several values to _one_ variable
name simultaneously. You need to specify that the variable is a
list. Otherwise, how should PHP name the different values for
$top70s? :)
Hope this helps,
Torben
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net