1
我试图获取form_droplist上选定的值,但该值都获得其“名称”,并且不会传递给我下拉列表中的值,有人可以给我一个提示,所以我可以继续?无法从form_droplist中获取值
VIEW:
<form method="POST" action="tableQuery">
<label> Select your Table: </label><br />
<?php echo form_dropdown('table',$tables) ?>
<br /> <br />
<label> Number of Restrictions: </label>
<input type="text" name="numRow" /> <br /><br />
<button class="btn btn-primary">Build Restrictions</button>
</form>
控制器:
public function tableQuery()
{
$tblName = $this->input->post('table');
$numRows = $this->input->post('numRow');
}
什么是$表内? – Babar