codice:
<form action='<?echo $_SERVER['PHP_SELF'];?>' method='POST'>
  <select name='formazioni'><?
  $query_formazioni="SELECT formazione FROM tabella";
  $formazioni=mysql_query($query_formazioni) or die (mysql_error());
  $i=0;
  while ($formazione=mysql_fetch_row($formazioni))
    echo "<option value='$i++'>$formazione[0]</option>";?>
  </select>
</form>