Undefined index $_POST

it looks like $row[‘matriculeAgent’] is not set. this could be caused by multiple causes. I noticed several problems in your code, which I try to explain here. first of all, if you want to you prepared statements, dont include your parameters directly inside the stmt->prepare() function call, use bind-param instead: $stmt = $bdd->prepare(“SELECT `matriculeAgent`, `motdepasseAgent` … Read more