多选列表放入数组中如何传递
我有一个多项选择列表,值为数据库一个表中的字段,多选之后是否会自动把选择的内容放入数组中并且在下一页面取得数组的值?
<?php
$query3="select * from parentinf;
echo ' <select name="student[]" multiple>';
echo " <option>请选择学生</option>";
$result3=mysql_query($query3);
while($row=mysql_fetch_array($result3))
{?>
<option value="<?php echo $row['MPHONE'];?>"><?php echo $row['STNAME']; ?></option>
<?
}
?>
这样写然后在显示的列表内容中选择任意数量的记录,student数组中是否应该存储被选择的记录的MPHONE值,我要在下一页面调用这个数组应该怎样做?