title: JQuery-Get value from select option to use in PHP query
body: <p>I would like to generate a query that contains the value selected from a drop down menu. he value would be saved into a PHP variable on change without clicking a submit button. After looking at various articles, I still am not sure what I should do. I would appreciate your help. Thanks!</p>
  
  <p><strong>Drop Down Menu</strong></p>
  
  <pre><code>&lt;select name="attribute_select" id="attribute_select"&gt;
     &lt;option value="select-type"&gt;-- Select --&lt;/option&gt;
     &lt;option value="joint_list"&gt;Joint&lt;/option&gt;
     &lt;option value="collection_list"&gt;Collection&lt;/option&gt; 
     &lt;option value="panel_list"&gt;Panel&lt;/option&gt; 
     &lt;option value="wood_list"&gt;Wood&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><strong>PHP</strong></p>
  
  <pre><code>$tablename = value selected from drop down menu
  </code></pre>
  
  <p><strong>Query</strong></p>
  
  <pre><code>$panel_query = mysqli_query($con,"
          SELECT *
          FROM $tablename
  ");
  </code></pre>