Greetings;
Thanks for the help, but thats not quite what i'm looking for.
Inorder to move the names between the two lists i use a javascript function, after that i want to save the content of the second list in the db, but since its more than one item i would need to put them into an array....
here is a snippet of the code
-
-
<select size=8 name=employees style='width: 250;' dir=rtl multiple='yes'>
-
<option value=0></option>
-
</select>
-
</td>
-
<td bgcolor=$color4 align=center>
-
<input type=button value='>' name=1 style='width: 70;' onclick='return nameXchange(document.meetings_frm.employees,document.meetings_frm.members[]);' ><br>
-
<input type=button value='<' name=1 style='width: 70;' onclick='return nameXchange(document.meetings_frm.members[],document.meetings_frm.employees);'><br>
-
</td>
-
<td bgcolor=$color4 align=right>
-
<select size=8 name=members[] style='width: 250;' dir=rtl multiple='yes'>
-
</select>
Heya, NourB. Welcome to TSDN!
Set the name of your select to "varname[]" (note the brackets):
-
<select name="mySet[]" multiple="multiple">
-
<option value="1">one</option>
-
etc.
-
</select>
-
For a working example, take a look at this page.