RE: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value

From: Date: Tue, 22 May 2001 14:52:57 +0000
Subject: RE: [PHP-WIN] Multiple value selection box (mix php/html problem) returning only one value
Groups: php.windows 
Request: Send a blank email to php-windows+get-7832@lists.php.net to get a copy of this message
I am not sure I get what it is you want to do.... >Situation: >I'm using a DB query to bring back a list of values to populate a >selection box on a form. I would like the user to be able to select >multiple values. I dont understand this. You can only select one item from a selct box(?). >As it stands my code is only returning the last value selected. So you wants to store them in a "history" array, then?? Is that what you want to do? Is that what you *need* to do? >I plan to use the selected values to run more queries so I believe the >best way to handle multiple values is to put them in an array and then >run queries based on the array. Why don't you uses check boxes or radiation buttons instead? It seams more proper to use them in this situation... or? >That's the next stage >How should I change this code to have $earnType return multiple values >I'm guessing this is a mix of the html & php But I'm betting someone >else has solved this already.

« previous php.windows (#7832) next »