如何确保设置了if (复选框),然后启用filter by sport_id字段,只有那些在sport_id字段中为'1‘的行才会显示。Oracle数据库
<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>
发布于 2020-04-15 14:32:10
您可以在if()
条件中使用
isset($_POST['sport_id'])
https://stackoverflow.com/questions/61231163
复制相似问题