$current_admin_id = $_GET["current_admin_id"];
echo $current_admin_id;
和其它控件一样的,如:
<select name="selectname" >
<option value='1'>11111</option>
<option value='2' selected>22222</option>
</select>
提交后,服务器端的$selectname 就等于2了。
<form action="./admin_operate_admin.php">
<table align="center" border="1" width="90%" height="30%" id="table1" bordercolor="#A9C9E5" cellspacing="1" >
<tr>
<th width="50%" height="27">账户名称</th>
<th width="50%" height="27">账户操作</th>
</tr>
<tr>
<td width="10%" height="45" align="center">
<?php
$tbl_name = $_SESSION["admin_cfg_table"];
$sql="select $kf_admin_id from $tbl_name order by $kf_mod_time asc";
$result=mysql_query($sql);
?>
<select name = "current_admin_id">
<?php
while($row=mysql_fetch_array($result))
{
$value = $row[$kf_admin_id];
?>
<option value= <?php echo $value;?>><?php echo $value;?></option>
<?php
//unset($value);
}
?>
</select>
</td>
<td align="center">
<input type="submit" value="账户管理" />
</td>
</tr>
</table>
</form>