Say I have the following html code:
<select size="7" name="Item_Type[]" multiple>
<option value=Rings>Rings</option>
<option value=Earrings>Earrings</option>
<option value=Pendants>Pendants</option>
<option value=Necklaces>Necklaces</option>
<option value=Bracelets>Bracelets</option>
<option value=Gemstones>Gemstones</option>
</select>
A user chooses Rings, Earrings, and Gemstones. They hit submit. It goes into a mysql database as one record.
NAME EMAIL ITEM_TYPES
Joe Blow | joeblow@joe.com | Rings,Earrings,Gemstones
Now we have 1 record for Joe Blow.
Thats easy to do.
The problem i'm having is, when Mr. Blow comes back and wants to update that information. This time my html would have to be changed to look like:
<select size="7" name="Item_Type[]" multiple>
<option value=Rings SELECTED>Rings</option>
<option value=Earrings SELECTED>Earrings</option>
<option value=Pendants>Pendants</option>
<option value=Necklaces>Necklaces</option>
<option value=Bracelets>Bracelets</option>
<option value=Gemstones SELECTED>Gemstones</option>
</select>
Any help would be greatly appreciated!