How to make sure that if (checkbox) is set, then enable the filter by sport_id field and only those lines are displayed where in the sport_id field there is '1'. Oracle Database
<form action=" " method="post">
<input type="checkbox" name="sport_id" value="1">
</form>
<div class="col-xs-6 col-md-3">
<p></p>
<div class="checkbox">
<label>
<?php echo form_checkbox('sport_id', sport::checkboxValid(),
($this->input->get('sport_id') > 0) ? 'checked="checked"' : '')?>
</label>
</div>
</div>
Aucun commentaire:
Enregistrer un commentaire