forked from edrcq/php_admin_test
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_form.php
More file actions
29 lines (26 loc) · 799 Bytes
/
update_form.php
File metadata and controls
29 lines (26 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
require_once __DIR__ . '/init/db.php';
// id de l'utilisateur a update
if (isset($_GET['id'])) {
$id_to_update = $_GET['id'];
} else {
// Redirection si pas d'ID dans l'url.. on ne peut pas mettre a jour RIEN.
header('Location: users.php');
die();
}
// Recuperer l'utilisateur a mettre a jour avec PDO et une requete SQL
// $user = ...;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mettre a jour un utilisateur</title>
</head>
<body>
<!-- Afficher un formulaire avec les data de l'utilisateur -->
<!-- <input type="text" name="username" value="<?= /* $user['username'] */ ?>" -->
</body>
</html>