Svensson, B.A.T. wrote:
> 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(?).
>
HTML provides for a multivalue selection dropdown 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?
Yeah this is my aim, but it's not a history array (easy) but a
"selected" array (not getting it)
>
>
>> 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?
>
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.
>
>> 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.
--
Michael Kelley
[EMAIL PROTECTED]
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 88003
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]