The query should be
$query = "INSERT INTO student VALUES('$id','$nom','$prenom',CURRENT_TIMESTAMP)";
like this and you should consider to assign $_POST['values'] after checking isset condition as below,
if(isset($_POST['but1'])){
$id = $_POST['id'];
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$query = "INSERT INTO student VALUES('$id','$nom','$prenom',CURRENT_TIMESTAMP)";
}
This will omit the error
Notice: Undefined index: id in .....
and consider about
CURRENT_TIMESTAMP
return value.