i was trying to print some text using echo , at first i thought that the error is from the syntax of echo function , then i figured out that the isset condition is not verified even if i set the button on !!
<?php
if (isset($_POST['ajout'])) {
echo "string";
} else {
echo "vérifier les champs";
}
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<form>
<label>id</label>
<input type="text" name="id">
<br>
<label>points</label>
<input type="text" name="points">
<br>
<input type="submit" name="ajout">
</form>
</body>
</html>