Re: Multiple value selection box (mix php/html problem)
| From: | Michael Kelley | Date: | Tue, 22 May 2001 18:23:48 +0000 |
| Subject: | Re: Multiple value selection box (mix php/html problem) | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-7837@lists.php.net to get a copy of this message | ||
Svensson, B.A.T. wrote:
I am not sure I get what it is you want to do....HTML provides for a multivalue selection dropdown boxSituation: 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(?).
Yeah this is my aim, but it's not a history array (easy) but a "selected" array (not getting it)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?
Because the first query returns around 45 distinct values. I'm trying to keep scrolling to a minimum (not to mention this is just a proof of concept.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?
-- Michael Kelley mkelley@nmsu.edu Programmer/Systems Analyst I New Mexico State University Information and Communication Technologies Work # (505)-646-1374 P.O. Box 30001 MSC: 3AT Las Cruces, NM 88003That'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.