|
呃,不是我找茬,论坛这个新风格很囧……比较不适应,还好很清爽……
转入正题,用纯PHP,如下:
<form name="form1" method="post" action="09.php">
<select name="select[]" size="10" multiple>
<option value="A" selected>00</option>
<option value="B">01</option>
<option value="C">02</option>
<option value="D">03</option>
<option value="E">04</option>
<option value="F">05</option>
<option value="G">06</option>
<option value="H">07</option>
<option value="I">08</option>
</select>
<input type="submit" name="Submit" value="提交">
</form>
<?php
$ArrayCount = count($select);
echo $ArrayCount." this is the count<p></p>";
for($i=0;$i<$ArrayCount;$i++)
{
echo $select[$i]."<br/>";
}
?>
把SELECT封装成一个数组,那用CI的话
怎么用$this->input->post获取这个东西呢? |
|