Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Getinscription.php 825B

il y a 9 mois
il y a 9 mois
il y a 9 mois
il y a 9 mois
il y a 9 mois
1234567891011121314151617181920212223
  1. <?php
  2. include 'include/header.php';
  3. $Pdostatinscripton = $mysql->prepare('INSERT INTO users VALUES (NULL, :mail, :motdepasse, :nom, :prenom)');
  4. $Pdostatinscripton->bindValue(':mail',$_POST['login'], PDO::PARAM_STR);
  5. $Pdostatinscripton->bindValue(':motdepasse',hash('sha256', $_POST['password']), PDO::PARAM_STR);
  6. $Pdostatinscripton->bindValue(':nom',$_POST['name'], PDO::PARAM_STR);
  7. $Pdostatinscripton->bindValue(':prenom',$_POST['surname'], PDO::PARAM_STR);
  8. $insertIsOk = $Pdostatinscripton->execute();
  9. if($insertIsOk){
  10. $message = 'Votre Compte a été crée<br /><br /><a href="homepage.php">Page d\'accueil</a><br /><br /><a href="connexion.php">Page de connexion</a>';
  11. }
  12. else{
  13. $message = "Probleme de création de compte revenez plus tard";
  14. }
  15. ?>
  16. <div class="message">
  17. <?php echo $message ?>
  18. </div>