Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include'included/header.php'
- ?>
- <?php
- // When the button submit is pressed
- if(isset($_POST['submit'])){
- $req = $pdo->prepare("INSERT INTO users(nom, prenom, login, password)
- VALUES (:nom, :prenom, :login, :password)");
- $req->execute([
- 'nom' => $_POST['nom'],
- 'prenom' => $_POST['prenom'],
- 'login' => $_POST['login'],
- 'password' => $_POST['password'],
- ]);
- header('location: index.php');
- }
- ?>
- <h2>Formulaire de modification</h2><br>
- <?php include'included/forminclude.php';?>
- <?php include'included/footer.php';?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement