我有一个下拉菜单的 html 部分:
<form name="navList" onsubmit="return submitForm();">
<select name="subMenu">
<option value> </option>
<option value> CR_ID </option>
<option value> CR_HEADLINE </option>
<option value> CRI_CLOSEDATE </option>
<option value> CRI_ASSIGNEE </option>
</select>
如何使用此功能将其更改为 php?
foreach($array as $key=>$value)
{
$html .= "<option value='$key'>$value</key>";
}
echo "<select name="process">$html</select>";