Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pseudo = htmlspecialchars($_POST['pseudo']);
- $mail = htmlspecialchars($_POST['mail']);
- $motdepasse = sha1($_POST['motdepasse']);
- $bierepreferee = htmlspecialchars($_POST['bierepreferee']);
- $rq = $bdd->prepare('INSERT INTO `profil` (`pseudo`, `mail`, `motdepasse`, `bierepreferee`) VALUES (:pseudo, :mail, :motdepasse, :bierepreferee)');
- $rq->bindParam('pseudo', $pseudo, PDO::PARAM_STR);
- $rq->bindParam('mail', $mail, PDO::PARAM_STR);
- $rq->bindParam('motdepasse', $motdepasse, PDO::PARAM_STR);
- $rq->bindParam('bierepreferee', $bierepreferee, PDO::PARAM_STR);
- $rq->execute();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement