I have the following multi select box in a HTML form:
<select multiple="multiple" name="fruits">
<option value="Apple">Apple</option>
<option value="Peach" selected="selected">Peach</option>
<option value="Banana">Banana</option>
<option value="Grapes" selected="selected">Grapes</option>
</select>
How can I convert the selected values into a string of comma separated values for inserting into the database?
I am using PHP.