-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
23 lines (23 loc) · 733 Bytes
/
edit.php
File metadata and controls
23 lines (23 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
require_once 'inc/header.php';
require_once 'inc/app.php';
?>
<?php
if($req->get('id')){
$id=$req->get('id');
}
else{
$req->redirect("index.php");
}
?>
<body class="container w-50 mt-5">
<?php $mes->printError();?>
<form action="handle/edit.php?id=<?=$id?>" method="post">
<textarea type="text" class="form-control" name="title" id="" placeholder="enter your note here"></textarea>
<input type="date" name="date"class="input input-bordered input-secondary w-full max-w-xs schedule-date" />
<div class="text-center">
<button type="submit" name="edit" class="form-control text-white bg-info mt-3 " >Update</button>
</div>
</form>
</body>
</html>