-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrite.php
More file actions
38 lines (35 loc) · 719 Bytes
/
write.php
File metadata and controls
38 lines (35 loc) · 719 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
<?php
session_start();
include 'db.php';
if(!isset($_SESSION['id_user'])) {
header('location:sign-in/');
exit();
}else {
$id_user = $_SESSION['id_user'];
// echo $id_user;
}
?>
<html>
<head>
<title>My Guest Book</title>
</head>
<body>
<h2>My Guest Book </h2>
<form method="post" action="memo_post.php">
<table>
<tr>
<td>Title</td>
<td><input type="text" name="Title"></td>
</tr>
<tr>
<td>Isi Memo</td>
<td><textarea cols="60" rows="10" name="Memo"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="submit"></td>
</tr>
</table>
</form>
</body>
</html>