<Original message>
From: its me <[EMAIL PROTECTED]>
Date: Wed, Sep 26, 2001 at 02:56:36AM -0700
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP-DB] multiple selection!!! urgent guys

> i made in form list menu with multiple select:
> <select size="4" name="media" multiple>
>           <option>Envelopes</option>
>           <option>transparencies</option>
>           <option>greeting cards</option>
>           <option>labels</option>
>           <option>plain paper</option>
>           <option>iron-on transfers</option>
>           <option>photo paper</option>
>           <option>banners</option>
>           <option>glossy coated paper</option>
>           <option>glossy photo paper</option>
>           <option>glossy photo film</option>
>           <option>fabric</option>
>         </select>
> 
> but in php script when i make
> echo $ media;
> it only print the last item selected,not all items i selected.
> ??????what should i do?

</Original message>

<Reply>

You should make an array of the select:

<select size="4" name="media[]" multiple>
                            ^^
                            ^^

</Reply>

-- 

* R&zE:


-- 
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to