I am having a little bit of trouble coding a registration form. The text fields are no problem, its when I have a selection of checkboxes asking why they chose to register with this particular website.
There are 3 checkboxes and 3 fields in the mysql table for them, the field names are 'interest_1' 'interest_2' 'interest_3'
If the user selects just one check box then the value of that will be inserted into 'interest_1' and so on...
I am really struggling however to create the php and sql code to insert this into the table
Any help would be greatly apprecieted
The checkboxes are
<tr>
<td class="typeMusic">What are your interests:</td>
<td class="checkbox"><input type="checkbox" name="newMusic" value="1"/>To find new and exiting music</td>
<td class="checkbox"><input type="checkbox" name="newMusic" value="2"/>Shopping for music related products</td>
<td class="checkbox"><input type="checkbox" name="newMusic" value="3"/>Other</td>
</tr>