title: How to store in database the value in select tag after submitting
body: <p>I have a select tag command in html/php. After the user select an option and submits the form, I want the value of it to be stored in my sql database. I have a separate file of php for the select tag and for storing the database.</p>
  
  <p>This is select tag command in my form:</p>
  
  <pre><code>&lt;form name="stdntdetails" action="submit_stdntdetails.php" method="post"&gt;
      &lt;select&gt;
          &lt;option value="IT"&gt;Information Technology&lt;/option&gt;
          &lt;option value="IS"&gt;Information System&lt;/option&gt;
          &lt;option value="CS"&gt;Computer Science&lt;/option&gt;
      &lt;/select&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I don't know what to put in my submit_stdntdetails.php</p>