/
response_edit.php
34 lines (32 loc) · 971 Bytes
/
response_edit.php
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
<?php
require_once "authenticate.php";
require_once "response_get_by_id.php";
require_once "correct_user.php";
$result = get_info_res($_GET['id']);
correct_user($result['user_id']);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Edit Text</title>
<link href="/3ch/stylesheets/reset.css" rel="stylesheet">
<link href="/3ch/stylesheets/common.css" rel="stylesheet">
</head>
<body>
<div class="header">
<button type="button" onclick="location.href='/3ch/logout.php'">Log out</button>
</br>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</br>
</div>
<div class="content">
<form action="response_edit_do.php" method="post">
Currently:<?php echo $result['text']; ?></br>
New :</br>
<input type="text" name="text" size="50" value="" /></br>
<input type="hidden" name="response_id" value=<?php echo $_GET['id'] ?> />
<input type="submit" value="変更する" />
</form>
</div>
</body>
</html>