Question
insert multiple choices into mysql field
I have a form that inserts a record into mysql. it's working
fine except when i changed the pull-down menu to a list allowing
multiple selections, it only inserts the last item selected. I know
it should insert the valuse as comma separated. Here's the php:
GetSQLValueString($_POST['not_reen_list'], "text"),
and the HTML:
<select name="not_reen_list" size="10" multiple="multiple" id="not_reen_list">
<option value="Nothing selected" selected="selected">Please select one</option><option value="Cost">Cost</option>
<option value="School could not meet our financial aid needs"> School could not meet our financial aid needs </option>
<option value="Prefer another school">Prefer another school </option>
</select>
Any help is appreciated.
GetSQLValueString($_POST['not_reen_list'], "text"),
and the HTML:
<select name="not_reen_list" size="10" multiple="multiple" id="not_reen_list">
<option value="Nothing selected" selected="selected">Please select one</option><option value="Cost">Cost</option>
<option value="School could not meet our financial aid needs"> School could not meet our financial aid needs </option>
<option value="Prefer another school">Prefer another school </option>
</select>
Any help is appreciated.
