Rolland
|
| Posted: 07/26/2002, 12:07 AM |
|
I have on a form a list box with multiple choice, but when I did one ,
there is only the last choice which is entered in database.
I want for example for a list box which content specialities, if a visitor
makes a multiple choice to have in database all choices with the visitor ID
it's a many-to-many relation beetween users and specialities?
I fnished designing my website, it's my only matter?
could someone gives me ideas?
thanks
|
|
|
 |
Chris K.
|
| Posted: 07/26/2002, 1:57 AM |
|
Try to name your listbox ending with [], this will produce selections array in your script that you will have to handle manually (by iterating selections and putting/removing rows in your user-specialities table). Beware that some CodeCharge code may fail if tries to use this listbox value (unexpected array instead of string as a parameter's value). You can put a code in Initialize event to join this array and assign parameter value as comma-separated list for instance.
|
|
|
 |
NCLAVERO
|
| Posted: 07/30/2002, 8:32 AM |
|
Chris K.
Do you have any example of your explanation.
Thanks
|
|
|
 |
Nicole
|
| Posted: 08/01/2002, 5:02 AM |
|
Rolland,
please refer to the threads about multiple selection for CC and CCS because the function that parses the parameter string is almost the same: http://www.gotocode.com/disc_viewt.asp?mid=13096 http://www.gotocode.com/disc_viewt.asp?mid=11087
The solution for the first part of the task is proposed by Chris K.
|
|
|
 |
|