Multiple selections into database column
Posted: Sun Mar 13, 2016 2:26 pm
With multiple boxes and more than one selected, how does one put the checked boxes into an array and insert into a single database column? Any links or videos would be appreciated.
For example:
For example:
Code: Select all
<tr>
<td><label>
<input type="checkbox" name="social" value="facebook" id="social_0">
Facebook</label></td>
</tr>
<tr>
<td><label>
<input type="checkbox" name="social" value="twitter" id="social_1">
Twitter</label></td>
</tr>
<tr>
<td><label>
<input type="checkbox" name="social" value="other" id="social_2">
Other</label></td>
</tr>
<tr>
<td><label>
<input type="checkbox" name="social" value="fiended" id="social_3">
I have friended him</label></td>
</tr>