I do not know how to start this whole process of sending multiple data to a query in the database. I always submit an item for each types but never submitted multiple items of the same type . The image below will best illustrate:
IwouldlikeyoutohelpmewithconceptssothatIcanachievethedesiredresult.Iguessit'sallaboutcapturingvaluesandstoringthevariablesinarraysbutIdonotknowmuchmorethanthat.
Forlogic,IthinkIwouldselectrealestatefromallcitiespresented,thentypeofpropertyandthenamountofdorms,atleastIthinkitwouldbeso.IwouldliketoknowthewholeprocessfromHTML
toquery.
Modification:Iputthisurl link what I have done so far. I made HTML
of the three results that I have to capture with PHP in the form of array .
</body>
<form>
<p>Selecione a cidade: </p>
<input type="checkbox" name="cidade[]" value="Campo Grande">Campo Grande<br>
<input type="checkbox" name="cidade[]" value="Dourados">Dourados<br>
<input type="checkbox" name="cidade[]" value="Três Lagoas">Três Lagoas<br>
<input type="checkbox" name="cidade[]" value="Corumbá">Corumbá<br>
<input type="checkbox" name="cidade[]" value="Naviraí">Naviraí<br>
<input type="checkbox" name="cidade[]" value="Paranaíba">Paranaíba<br>
<input type="checkbox" name="cidade[]" value="Aquidauana">Aquidauana<br><br>
<p>Tipo de imóvel: </p>
<input type="checkbox" name="imovel[]" value="Apartamento">Apartamento<br>
<input type="checkbox" name="imovel[]" value="Casa">Casa<br>
<input type="checkbox" name="imovel[]" value="Comercial">Comercial<br>
<input type="checkbox" name="imovel[]" value="Terreno">Terreno<br>
<input type="checkbox" name="imovel[]" value="Condomínio">Condomínio<br><br>
<p>Selecione a quantidade de dormitórios: </p>
<input type="checkbox" name="dormitorios[]" value="1 Dormitório">1 Dormitório<br>
<input type="checkbox" name="dormitorios[]" value="2 Dormitórios">2 Dormitórios<br>
<input type="checkbox" name="dormitorios[]" value="3 Dormitórios">3 Dormitórios<br>
<input type="checkbox" name="dormitorios[]" value="4 Dormitórios">4 Dormitórios<br>
<input type="checkbox" name="dormitorios[]" value="5 Dormitórios">5 Dormitórios<br>
</form>