Re: multiple selection

From: Date: Mon, 21 Aug 2000 07:55:16 +0000
Subject: Re: multiple selection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12728@lists.php.net to get a copy of this message
On 21 Aug, =?gb2312?B?WmhhbmcuSm95Y2Uv1cW1dA==?= wrote: > hi, i need your help. > > does anyone know how to get the value passed from a multiple selection in a > HTML page? > > for exapmle: > <html> > <form method = "post"> > <select name="test" multiple> > <option value=1>1</option> > <option value=2>2</option> > <option value=3>3</option> > </form> > </html> > > if choose item 1 and 3, i couldn't get the total value, instead, i just find > that the value of $test is the last value of item i selected, why? and > could you tell me how to fetch total value? > > thx > > Joyce <select name="test[]" multiple> See the FAQ at www.php.net or your favourite mirror for more info. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA

« previous php.general (#12728) next »