I am building a comment system and would like that when the user selects the value of a select field, a variable would be sent to a PHP page with the selected value, and it would return the results inside a div. >
<form>
<div class="campo">
<label>Ordenar por: </label>
<select id="ordenar" name="ordenar">
<option>Relevância</option>
<option>Mais Recente</option>
</select>
</div>
<div class="campo">
<label>Comentários apenas de: </label>
<select id="filtroComentarios" name="filtroComentarios">
<option>Professores</option>
<option>Estudantes</option>
</select>
</div>
</form>
<div id="comentarios"> </div>
//Div que recebe os comentários filtrados