RE: [PHP] File Uploads and Get Method

From: Date: Thu, 03 May 2001 18:39:47 +0000
Subject: RE: [PHP] File Uploads and Get Method
Groups: php.general 
Request: Send a blank email to php-general+get-51307@lists.php.net to get a copy of this message
> -----Original Message----- > now, on the same form, i have a multiple select box, where > you can select > multiple values from one select box. the code is as follows -- > > <select name=country size=3 multiple> [ snip ] > </select> > > if the user selects more than one country, then if you echo > $country, it > will show you only the last selected value for country. > however, what you > can do is break the query string at the ampersands, figure out all the > countries the user has selected and put them in an array. in > order to have > a query string, the GET mothod must be used. that solves > this problem. If you name the field "country[]", with the square brackets, all the user's selections will be in an array named $country when POST'ed. So, you can use POST to address both problems. Kirk

« previous php.general (#51307) next »