I trying to make a select that should be post and contain all the votacoes from an user
<select name="votacao" size="1">
<option>
<?php
$sql = "SELECT nome_votacao FROM votacoes WHERE user_id = $_SESSION['id']";
$rs = mysql_query($sql);
while($row = mysql_fetch_row($rs))
echo $row['nome_votacao'];
?>
</option>
</select>
Your
<option>needs to be in your loop:You probably need to also add a unique ID as the
valueattribute for each<option>for this to be truly useful.