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

From: Date: Tue, 05 Sep 2000 03:13:50 +0000
Subject: How do I retrieve all the vales from <SELECT MULTIPLE ... > ?
Groups: php.general 
Request: Send a blank email to php-general+get-15216@lists.php.net to get a copy of this message
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
      _ _ _ _           _    _ _ _ _ _
     /\_\_\_\_\        /\_\ /\_\_\_\_\_\
    /\/_/_/_/_/       /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
   /\/_/__\/_/ __    /\/_/    /\/_/          PROFUNDUM VIDITUR
  /\/_/_/_/_/ /\_\  /\/_/    /\/_/
 /\/_/ \/_/  /\/_/_/\/_/    /\/_/         (Whatever is said in Latin
 \/_/  \/_/  \/_/_/_/_/     \/_/              appears profound)
Rob Tanner McMinnville, Oregon rtanner@onlinemac.com

« previous php.general (#15216) next »