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!
Drop Down Menu
<select name="attribute_select" id="attribute_select">
<option value="select-type">-- Select --</option>
<option value="joint_list">Joint</option>
<option value="collection_list">Collection</option>
<option value="panel_list">Panel</option>
<option value="wood_list">Wood</option>
</select>
PHP
$tablename = value selected from drop down menu
Query
$panel_query = mysqli_query($con,"
SELECT *
FROM $tablename
");
selectgets changed to. look at some examples of ajax and php.