This may be a rookie question, but I need to handle a server connect form submission that contains a series of checkboxes
<div class="FormRow FormCheckboxGroupVertical"><span id="Form2Field7Label">Type</span><span class="FormRequiredFieldText"></span></label>
<div class="FormInput">
<ul class="FormCheckboxGroupVertical">
<li><input type="checkbox" name="persontype" id="Form2Field7_0" value="1" /><label for="Form2Field7_0">Value 1</label></li>
<li><input type="checkbox" name="persontype" id="Form2Field7_1" value="2" /><label for="Form2Field7_1">Value 2</label></li>
<li><input type="checkbox" name="persontype" id="Form2Field7_2" value="3" /><label for="Form2Field7_2">Value 3</label></li>
<li><input type="checkbox" name="persontype" id="Form2Field7_3" value="4" /><label for="Form2Field7_3">Value 4</label></li>
<li><input type="checkbox" name="persontype" id="Form2Field7_4" value="5" /><label for="Form2Field7_4">Value 5</label></li>
<li><input type="checkbox" name="persontype" id="Form2Field7_5" value="6" /><label for="Form2Field7_5">Value 6</label></li>
</ul>
</div>
</div>
The data will be stored in a MSSQL database and a table which I can modify.
The visitor can select multiple options on the web form.
Can someone recommend the best way and some guidance of how to handle the storage of these in the database.
I can replicate each checkbox with its own field nchar(1) or as a comma separated nvarchar.
Thanks is advance.