RE: [PHP-WIN] SELECT MULTIPLE and PHP?
| From: | Ignatius Teo | Date: | Mon, 28 Aug 2000 05:14:16 +0000 |
| Subject: | RE: [PHP-WIN] SELECT MULTIPLE and PHP? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2194@lists.php.net to get a copy of this message | ||
Try:
<select multiple name[]="Selected">
Ignatius
> -----Original Message-----
> From: Dimitri Smits [mailto:gongo@vt4.net]
> Sent: Monday, 28 August 2000 16:01
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] SELECT MULTIPLE and PHP?
>
>
> Hi,
>
> what am I doing wrong when I want to use a select multiple in a form
> and only get the last value selected instead of all the
> values selected?
>
> ---- html code for test.htm ----
>
> <html>
> <head>
> <title>Dit is een testje!</title>
> </head>
> <body>
>
> <form action="./info.php" method="get">
> <select multiple name="Selected">
> <option value="Water">Water</option>
> <option value="Vuur">Vuur</option>
> <option value="Lucht">Lucht</option>
> <option value="Aarde">Aarde</option>
> </select> <br />
> <input type="submit" value="Submit">
> </form>
>
> </body>
> </html>
>
> ---- End of test.htm ----
>
> ---- php code for info.php ----
>
> <?
> phpinfo();
> ?>
>
> ---- End of info.php ----
>
>
> I only see the last value I select. How do I catch all of them?
> (neither post not get gives me the result I wanted, and yes, the
> get was to see if my html syntax was correct, which it seems to be.
>
> thnx in advance,
> Dimitri
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>