Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php include'included/header.php'
  2.  
  3. ?>
  4. <?php
  5. // When the button submit is pressed
  6. if(isset($_POST['submit'])){
  7.  
  8. $req = $pdo->prepare("INSERT INTO users(nom, prenom, login, password)
  9. VALUES (:nom, :prenom, :login, :password)");
  10. $req->execute([
  11. 'nom' => $_POST['nom'],
  12. 'prenom' => $_POST['prenom'],
  13. 'login' => $_POST['login'],
  14. 'password' => $_POST['password'],
  15. ]);
  16. header('location: index.php');
  17. }
  18. ?>
  19. <h2>Formulaire de modification</h2><br>
  20. <?php include'included/forminclude.php';?>
  21.  
  22. <?php include'included/footer.php';?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement