Re: How do I retrieve all the vales from <SELECT MULTIPLE ... > ?

From: Date: Tue, 05 Sep 2000 03:12:04 +0000
Subject: Re: How do I retrieve all the vales from <SELECT MULTIPLE ... > ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15217@lists.php.net to get a copy of this message
Rob Tanner writes: > Hi all, > > I'm afraid I'm a PHP newbie. I've got some WEB/database tasks to do. > I usually use perl, but I thought I'd take PHP out for a spin and see > how I like it. > > I need to retrieve all the selected values between the <SELECT > MULTIPLE> and </SELECT> tags. There can be from 1 to 16 <OPTION> tags > depending on the data retrieved from the database. The user then > selects one or more of the options. CGI.pm (perl) simply returns all > the selected items in a single array. I assumed PHP did the same > thing, but what it appears to do is return only the last item selected. > How do I get all the items? > > -- Rob http://www.php.net/FAQ.php#7.14 -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#15217) next »