Hello,
i am trying to update a table row from a form the code is:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="votim" id="votim">
<p>
<input type="hidden" name="email" id="email" value="<?php echo $usernamepervotime ?>"/>
<input type="hidden" name="vota" id="vota" value="<?php htmlentities($row_VotaMiss['vota']+1); ?>"/>
<input type="hidden" name="ID" id="ID" value="<?php echo $row_VotaMiss['ID']; ?>"/>
</p>
<p> </p>
<p><a href="#" onclick="document['votim'].submit()">Voto</a></p>
<?php
if(isset($_POST['email'])){
$email = $_REQUEST['email'];
$vota = $_POST['vota'];
$id = $_POST['ID'];
$update = mysql_query("UPDATE table SET vota=$vota WHERE ID=$id");
}
?>
</form>
but it wont work... can anyone help me??? the row table has 11 columns and the column i want to update is the last one named "vota"
thank you in advance
NiKu