-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathupdate.php
More file actions
49 lines (46 loc) · 1.42 KB
/
Copy pathupdate.php
File metadata and controls
49 lines (46 loc) · 1.42 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php include 'php/update.php'; ?>
<!DOCTYPE html>
<html>
<head>
<title>Update</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<form action="php/update.php"
method="post">
<h4 class="display-4 text-center">Update</h4><hr><br>
<?php if (isset($_GET['error'])) { ?>
<div class="alert alert-danger" role="alert">
<?php echo $_GET['error']; ?>
</div>
<?php } ?>
<div class="form-group">
<label for="name">Name</label>
<input type="name"
class="form-control"
id="name"
name="name"
value="<?=$row['name'] ?>" >
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email"
class="form-control"
id="email"
name="email"
value="<?=$row['email'] ?>" >
</div>
<input type="text"
name="id"
value="<?=$row['id']?>"
hidden >
<button type="submit"
class="btn btn-primary"
name="update">Update</button>
<a href="read.php" class="link-primary">View</a>
</form>
</div>
</body>
</html>