Se non erro usi php/mysql.
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<form name="lillo">
<select name="appo" id="appo"><?
$query = "select campo1, campo2 from tabella order by campo1";
$res = mysql_query($query);
while (list($campo1, $campo2) = mysql_fetch_array($res)) {
$selected = $campo1 == $id ? "selected" : ""; ?>
<option <? print $selected ?> value="<? print $campo1 ?>"><? print $campo2 ?></option><?
} // while (list($campo1, $campo2) = mysql_fetch_array($res)) ?>
</select>
</form>
</body>
</html>