title: How to store multiple SELECT values at once into MySQL?
body: <p>I have this select-tag which contains five different options. I want the user to be able to select up to three of those options. When submitted they should be saved into a MySQL row where there are three different fields (I call them 'tag1', 'tag2', 'tag3') that can store the information.</p>
  
  <pre><code>&lt;select name="tag" multiple&gt;
  &lt;option value="iphone"&gt;iPhone&lt;/option&gt;
  &lt;option value="ipad"&gt;iPad&lt;/option&gt;
  &lt;option value="ipod"&gt;iPod&lt;/option&gt;
  &lt;option value="imac"&gt;iMac&lt;/option&gt;
  &lt;option value="ishuffle"&gt;iShuffle&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>How can this be done? I also want to be able to let the system know that only up to three options can be chosen. Or should I use something different than a select-tag?</p>
  
  <p>Thanks! Have a great day!</p>