-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.php
More file actions
49 lines (35 loc) · 897 Bytes
/
create.php
File metadata and controls
49 lines (35 loc) · 897 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
<?php
include 'header.php';
?>
<body>
<h1><strong>CREATE A 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/crud.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="<?php
if (isset($_GET['taskName']))
echo $_GET['taskName']; ?>";
placeholder="Your task" ><br>
<button type="submit"
name="addTask"
class="btn btn-primary">Add task</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>