I have this from on my index file:
<form action="index.php#updateMatch" method="post">
    <?php
        Some select option
        echo '  Date: (AAAA-MM-JJ) <input type="date" name="datematch">';
    ?>
    <input type="submit" value="do somthing" />
</form>
And if I some $_POST[xxx] I call this function:
function updateMatch($id,
    $winner_id, 
    $looser_id,
    $character_winner_id, 
    $character_looser_id, 
    $date) {
    database conection......
    $updatematch="UPDATE `match` SET manythings and date=$_POST[datematch] WHERE id=$_POST[id];";
    echo 'match.... N°'.$_POST['id'];
    mysql_close($db);
    }
    else 
        {echo "<span style='color: red'>blablabla</span>";}
}
But for date, the update dont work, the function set date to: 0000-00-00. How can i update date to ? Thanks
 
     
    