这是我的代码,我想获取所选选项的值,但是如何获取?
<?php
$sql = "SELECT * FROM `category`";
$category = mysql_query($sql); ?>
<select>
<?php
while ($row = mysql_fetch_array($category)) {
echo "<option id='cat' value='" . $row['catid'] ."'>" . $row['catname'] ."</option>";
}
?>
</select>