I have an advanced search form with input
and checkbox
, in which you can enter the name or select one or all of the checkboxes but how can I do it so that it takes the entered values to perform the search in mysql
?.
<form class="form-horizontal" role="form" id="datos_cotizacion">
<div class="form-group row">
<label for="q" class="col-md-2 control-label">Nombres:</label>
<div class="col-md-5">
<input type="text" class="form-control" id="q" placeholder="Nombre">
<label><input type="checkbox" id="pais" value="chile"> Chile</label><br>
<input type="checkbox" id="cbox2" value="viajes"> <label for="cbox2">Viajes</label>
</div>
<div class="col-md-3">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-search" ></span> Buscar</button>
<span id="loader"></span>
</div>
</div>
</form>