This is my code i want to get the value of the selected option but how?
<?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>