-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.php
More file actions
52 lines (37 loc) · 940 Bytes
/
update.php
File metadata and controls
52 lines (37 loc) · 940 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
include 'header.php';
include 'includes/update.inc.php';
?>
<body>
<h1><strong>UPDATE TASK.</strong></h1><br>
<div class="container">
<?php if (isset($_GET['error'])){ ?>
<div class="alert alert-danger"
role="alert">
<?php echo $_GET['error']; ?>
</div>
<?php } ?>
<form action="includes/update.inc.php"
method="post">
<div class="col-sm-4"></div>
<div class="task col-sm-4">
<input type="text"
name = "taskName"
class="form-control"
value="<?=$row['task'] ?>" > <br>
<input type="text"
name="id"
value="<?=$row['id']?>"
hidden>
<button type="submit"
name="updateTask"
class="btn btn-primary">Update</button><br><br>
<p align="center">
<a href="read.php"
class="link-primary">View</a></p>
</div>
<div class="col-sm-4 form-check">
</div>
</form>
</div>
</body>