forked from CS2102Project/PetCare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditText.php
More file actions
executable file
·33 lines (29 loc) · 842 Bytes
/
editText.php
File metadata and controls
executable file
·33 lines (29 loc) · 842 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
<?php
date_default_timezone_set('Asia/Singapore');
require_once("dbh.inc.php");
require_once("text.inc.php");
include 'header.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>Title of the document</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<?php
$id = $_POST['id'];
$uid = $_POST['uid'];
$date = $_POST['date'];
$message = $_POST['message'];
echo "<br><form method='POST' action='".edit($conn)."'>
<input type='hidden' name='id' value='".$_POST['id']."'>
<input type='hidden' name='uid' value='".$_POST['uid']."'>
<input type='hidden' name='date' value='".$_POST['date']."'>
<textarea name='message'>".$message."</textarea>
<button type='submit' name='TextSubmit' class='btn btn-warning btn-lg'>Edit</button>
</form>";
?>
</body>
</html>