As far as I remember you simply have to append [] the the name of the select tag, e.g.
<select name="selected_items[]" multiple>
The you would get all selected values into an array.
To create a string from that array, you can use implode() or join().
Hope this helps,
xblue