Re: multiple options in select.

From: Date: Sat, 25 Nov 2000 07:44:02 +0000
Subject: Re: multiple options in select.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27111@lists.php.net to get a copy of this message
You need to use an array as your name.. <select name="array[]" multiple> <option value=1>one <option value=2>two etc... Then loop through the array. -jeremy brand Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - I am pleased to see that we have differences. May we together become greater than the sum of both of us. -- Surak of Vulcan, "The Savage Curtain", stardate 5906.4 On Sat, 25 Nov 2000, Deepak Chawla wrote: > Date: Sat, 25 Nov 2000 01:41:54 -0600 (CST) > From: Deepak Chawla <dchawla@usa.unl.edu> > To: php-general@lists.php.net > Subject: [PHP] multiple options in select. > > Hi! > > In a html form i have a select-option element in which i can select > multiple options... > I'm posting the form to a php file. How do i access all the options > selected ?? i'm only getting the last option selected. > > regards > -deepak > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#27111) next »