title: insert value of html select form into mysql database
body: <p>I want to insert the value of a selected 'select form' into my mysql database.</p>
  
  <p>How can i get the right value of this?</p>
  
  <pre><code>&lt;form action='' method='post'&gt;
   &lt;select name="myselectbox"&gt;
    &lt;option name="myoption1" value="myoption1"&gt;myoption1&lt;/option&gt;
    &lt;option name="myoption2" value="myoption2"&gt;myoption2&lt;/option&gt;
    &lt;option name="myoption3" value="myoption3"&gt;myoption3&lt;/option&gt;
    &lt;option name="myoption4" value="myoption4"&gt;myoption4&lt;/option&gt;
   &lt;/select&gt;
  &lt;input type='submit' value='submit'/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>something like that? (this one didn't work obviously..)</p>
  
  <pre><code>$sql = "INSERT INTO Entries (myoption1) VALUES ('$_POST[myselectbox]')";
  </code></pre>