Re: How do I Access Multiple Select in a Form?

From: Date: Sat, 03 May 2003 11:59:26 +0000
Subject: Re: How do I Access Multiple Select in a Form?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146257@lists.php.net to get a copy of this message
On Saturday 03 May 2003 19:35, Daniel R. Anderson wrote: > I've got a form with a SELECT, but when I use echo POST to view the > contents all I get is the last option selected. > > i.e.: > > <FORM ...blah blah> > <SELECT NAME='something' SIZE=1 MULTPILE> > <OPTION VALUE='1'>option 1 > <OPTION VALUE='2'>option 2 > <OPTION VALUE='3'>option 3 > ... > <OPTION VALUE='n'>option n > > <INPUT TYPE=SUBMIT VALUE='Submit!'> > </SELECT> > </FORM> > > If I submitted that with options 1, 2, and n selected I would only get: > > $_POST['something'] == 'n'; manual > Variables > Variables from outside PHP -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Charity, n.: A thing that begins at home and usually stays there. */

« previous php.general (#146257) next »