title: How to get value of option from html select tag using php
body: <pre><code> &lt;select name=category&gt;
      &lt;option value='1'&gt;Adventure&lt;/option&gt;
      &lt;option value='2'&gt;Drama&lt;/option&gt;
   &lt;/select&gt;
  </code></pre>
  
  <p>I want to have the value of selected option. Like if Adventure is selected I want to store 1 or if drama is selected I want to store 2 . How can I do this using php?
  I have to add this data to a database table where I can't enter the name . I have to add their id . id 1 is for adventure, 2 for drama.</p>