2
... /busca?tipo%5B%5D=APARTAMENTO%2FAPTO+DUPLEX&area_de=50&area_at=100
In this URL I have 2 types of data:
kind of is checkbox
- APARTMENT
- APTO+DUPLEX
area_de que é select
- 50
area_at that is select
- 100
How to persist this data after the search? How to make it stay checked
or selected
so that the search is not requested and that it is enough to give another fetch with one or another different parameter without having to reschedule everything again?
Updating
Dear, the HTML is quite extensive, because I put a part in the question to be able to solve the rest based on the answers, as requested, here is the HTML. This is the HTML of the whole search.
HTML code of the form
<form action="/busca" method="GET" name="frm_busca" id="frm_busca">
<fieldset class="w255">
<legend>Tipo</legend>
<input type="checkbox" name="tipo[]" value="APARTAMENTO/APTO DUPLEX" id="tp1">
<label for="tp1">Apartamento</label>
<input type="checkbox" name="tipo[]" value="CASA" id="tp2">
<label for="tp2">Casa</label>
</fieldset>
<fieldset class="w145">
<legend>Dormitórios</legend>
<input type="checkbox" name="dorm[]" value="1" id="dorm1">
<label for="dorm1">1</label>
<input type="checkbox" name="dorm[]" value="2" id="dorm2">
<label for="dorm2">2</label>
<input type="checkbox" name="dorm[]" value="3" id="dorm3">
<label for="dorm3">3</label>
<input type="checkbox" name="dorm[]" value="4" id="dorm4">
<label for="dorm4">4+</label>
</fieldset>
</form>
You can put HTML in as well?
– Sergio
HTML placed. Thanks for the promptness.
– Marcos Vinicius
Nothing prevents you from reducing HTML to the essential minimum for those reading the question can answer without having to go to another site, have two windows open to be able to read the problem and see the code... your job is to make life easier for the respondent... How to create a Minimum, Complete and Verifiable example
– brasofilo
I’m done giving tips. Io finite sleep.
– brasofilo