Repository navigation
Expand file tree
/
Copy pathwrite.php
More file actions
79 lines (71 loc) · 1.48 KB
/
Copy pathwrite.php
File metadata and controls
79 lines (71 loc) · 1.48 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE>
<html>
<head>
<meta charset = 'utf-8'>
</head>
<style>
table.table2{
border-collapse: separate;
border-spacing: 1px;
text-align: left;
line-height: 1.5;
border-top: 1px solid #ccc;
margin : 20px 10px;
}
table.table2 tr {
width: 50px;
padding: 10px;
font-weight: bold;
vertical-align: top;
border-bottom: 1px solid #ccc;
}
table.table2 td {
width: 100px;
padding: 10px;
vertical-align: top;
border-bottom: 1px solid #ccc;
}
</style>
<body>
<?php
session_start();
$URL = "./index.php";
if(!isset($_SESSION['userid'])) {
?>
<script>
alert("로그인이 필요합니다");
location.replace("<?php echo $URL?>");
</script>
<?php
}
?>
<form method = "get" action = "write_action.php">
<table style="padding-top:50px" align = center width=700 border=0 cellpadding=2 >
<tr>
<td height=20 align= center bgcolor=#ccc><font color=white> 글쓰기</font></td>
</tr>
<tr>
<td bgcolor=white>
<table class = "table2">
<tr>
<td>작성자</td>
<td><input type="hidden" name="id" value="<?=$_SESSION['userid']?>"><?=$_SESSION['userid']?></td>
</tr>
<tr>
<td>제목</td>
<td><input type = text name = title size=60></td>
</tr>
<tr>
<td>내용</td>
<td><textarea name = content cols=85 rows=15></textarea></td>
</tr>
</table>
<center>
<input type = "submit" value="작성">
</center>
</td>
</tr>
</table>
</form>
</body>
</html>