選擇科室後,對應員工姓名根據選擇的科室獲取,怎麼做到。
兩個列表的代碼:
```
echo "<option value=".$gzh_num.">".$gzh_name." </option>";
// echosuboption($gzh_num,@$_GET['gzh_num']);
};
?>
</select>
</td>
<td><select name="yg_num" >
echo "<option value=0>-請選擇- </option>";
<?php
$yg_num_result=mysql_query("select yg_num , yg_name from yuangong where gzh_renum=01 order by yg_num ;");
while($yg_num_row=mysql_fetch_array($yg_num_result))
{
list($yg_num,$yg_name)=$yg_num_row;
echo "<option value=".$yg_num.">".$yg_name." </option>";
};
?>
</select></td>
gzh__rum處應當寫什麼代碼可以實現?