Hello,
I'm a relatively new programmer in php and I'm developing a website. It is a site where there is a list of companies. And I wanted to implement in it, search filters, the first of them being a select "Select your city":
<form method="post" action="lista.php" id="Cidade" name="Cidade">
<label for="cCidade">Selecione sua Cidade</label>
<select id="cCidade" name="tCidade">
<option>Selecione a Cidade</option>
<option value="Farroupilha">Farroupilha</option>
<option value="Caxias do Sul"default>Caxias do Sul</option>
</select>
</form>
I want when the user uses select
, the results are sent to a iframe
on the screen (the "list.php"), which is the listing of companies as I said earlier. But I want this submission, do not refresh the page and do not even need a button to be sent, that is, whenever the user uses another select option, the search changes completely.