Re: multiple selection

From: Date: Mon, 21 Aug 2000 06:37:55 +0000
Subject: Re: multiple selection
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-30022@lists.php.net to get a copy of this message
1) Please use php-general fo rthese questions 2) name="test[]". Ask on php-general for more info on how.why this works. php-dev is for development of the php language itself. On Mon, 21 Aug 2000, Zhang.Joyce/Õŵt wrote the following to...: > 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 >

« previous php.dev (#30022) next »