You structure looks wrong to me.
You have multiple form elements, each of which contains one select element with two option elements.
I would expect there to be one form element, which contains one select element, which contains one or more option elements.
echo( '<form method="POST">' );
echo( '<select name="inv">' );
if( mysqli_num_rows($result) )
{
echo( '<option>' . $row["rizikos_lygis"] . '</option>' );
while( $row = mysqli_fetch_array($result) )
{
printf( '<option value=\'%s\'>%s %s</option>'
, $row["sugeneruoja"]
, $row["pavadinimas"]
, $row["sugeneruoja"]
);
}
}
echo( '</select>' );
echo( '<input type="submit" name="submit" value="Apskaičiuoti">' );
echo( '</form>' );
Regards,
Phill W.