Consider the following listbox:
The above code would display the following listbox:
Please select the options you would like:
In order to read the results of the above form, you could use something like the following, which simply sends the selected values back to the browser. Obviously your code would do something more useful with the values:
Alternatively, you can make a call to Request.FormArray(aPreferences, "car_pref"), which will populate the array aPreferences with all customer selections.
FoxWeb Support Team
Sent by Nancy Remillard on 05/10/2002 07:01:48 PM:
I am trying to capture multiple selections from a list box on a web page. I populated the list with values from a table in FoxPro. Using Java Script, I have been able to get the values into an alert on the web side, but can't seem to pass the value back to my .prg so it can store it. I don't have any problems when I only allow the viewer to make one selection. Any pointers will be greatly appreciated.
After reading many of the posts here, I would have to consider myself a novice...so be gentle!