Salut tout le monde,

J'ai commencé à utiliser PDO et je veux savoir si le code suivant est bien sécurisé:
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
 
$q = $conn->prepare("INSERT INTO client (name, address) VALUES (:name, :address)");
$q->bindValue(':name', $_POST['name'], PDO::PARAM_STR);
$q->bindValue(':address', $_POST['address'], PDO::PARAM_STR);
$q->execute();
 
}

Merci d'avance