-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodify.php
More file actions
42 lines (41 loc) · 1.69 KB
/
Copy pathmodify.php
File metadata and controls
42 lines (41 loc) · 1.69 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
<!--- 게시글 수정 -->
<?php
include $_SERVER['DOCUMENT_ROOT']."/practice/db2.php";
$bno = $_GET['idx'];
$sql = mq("select * from board where idx='$bno';");
$board = $sql->fetch_array();
?>
<!doctype html>
<head>
<meta charset="UTF-8">
<title>게시판</title>
<link rel="stylesheet" href="/practice/style.css" />
</head>
<body>
<div id="board_write">
<h1><a href="/">자유게시판</a></h1>
<h4>글을 수정합니다.</h4>
<div id="write_area">
<form action="modify_ok.php?idx=<?php echo $bno; ?>" method="post">
<div id="in_title">
<textarea name="title" id="utitle" rows="1" cols="55" placeholder="제목" maxlength="100" required><?php echo $board['title']; ?></textarea>
</div>
<div class="wi_line"></div>
<div id="in_name">
<textarea name="name" id="uname" rows="1" cols="55" placeholder="글쓴이" maxlength="100" required><?php echo $board['name']; ?></textarea>
</div>
<div class="wi_line"></div>
<div id="in_content">
<textarea name="content" id="ucontent" placeholder="내용" required><?php echo $board['content']; ?></textarea>
</div>
<div id="in_pw">
<input type="password" name="pw" id="upw" placeholder="비밀번호" required />
</div>
<div class="bt_se">
<button type="submit">글 작성</button>
</div>
</form>
</div>
</div>
</body>
</html>