Assuming you want to get the list of people (who have been moved to the right hand box) after the form is submitted, you have the following problem:
> The names in the right hand box would have to be selected to be get posted > with the form If all the items in the right hand box were selected you would be able to use #form.choiceBox# to get the list of people IDs. Alternatively, you could build a list of these people IDs in a hidden form field. In the MoveOver() function, aswell as adding the item from the left hand box to the right hand box, you would also append the person ID to the list in the hidden form field value. That way, when your form is submitted, you have a list of selected people to use. Make any more sense? Could you post the MoveOver() function? Dominic On 03/10/2007, Charlie Griefer <[EMAIL PROTECTED]> wrote: > > I don't follow "I'm struggling with how to use the names in the right > hand side box." ?? > > On 10/3/07, Toby King <[EMAIL PROTECTED]> wrote: > > Hi there > > > > I have a piece of code that doesnt seem to be working and at present I > cant fathom why not. Well part of it is working but I'm stuck on finalising > getting it finished. > > > > Basically I am placing 2 boxes on the screen - a list of names in the > left box and an empty box on the right. A user can click on a name in the > left box and move the name to the right. > > > > I'm struggling with how to use the names in the right hand side box. > > > > Here is the code that I have so far: > > > > <select name="available" size="10" style="width:200;" > onChange="moveOver();"> > > <cfloop query="getpeople"> > > <option > value="#people_id#">#People_LastName#, #People_FirstName# > > </cfloop> > > </select> > > > > <cfset selectedpeople = ""> > > <select multiple name="choiceBox" style="width:200;" > size="10"> > > <cfloop query="getselectedpeople"> > > <cfset selectedpeople = > listappend(selectedpeople, people_id, ";")> > > <option > value="#people_id#">#People_LastName#, #People_FirstName# > > </cfloop> > > </select> > > > > Any tips would be greatfully received. > > > > Regards > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290085 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

