怎么获取下拉菜单选择框里面的值
HTML
<select name="selTest">
<option value="1">t1</option>
<option value="2">t2</option>
</select>
比如我现在选择了t2, 我怎么在php里调用这个值?
我要的不是$_POST['selTest'], 这个的值是‘2’,我要的是T2这个值,应该如何操作
[解决办法]
$box = "<font size=2 color=#0F8F80><B>Choose </font><font color=#0000FF size=2>Build</B>
</font><select name=build style=\"width:230px; text-align:center\">\n";
$query0 = "select distinct build_version from REGRESSION_STATUS";
$result0 = mysql_db_query($database, $query0) or die("Failed Query1");
while ($thisrow0 = mysql_fetch_row($result0)) {
$build_version = $thisrow0[0];
if($build_id==$build_version)
$box .= "<option value=$thisrow0[0] selected>$build_version</option>\n";
else
$box .= "<option value=$thisrow0[0]>$build_version</option>\n";
}
$box .= "</td>";
echo $box;
echo "</select>";
参考下吧