質問編集履歴
4
スペルミスを見つけた
test
CHANGED
File without changes
|
test
CHANGED
@@ -174,4 +174,4 @@
|
|
174
174
|
|
175
175
|
?>
|
176
176
|
|
177
|
-
<?php require '../fot
|
177
|
+
<?php require '../footer.php';?>
|
3
読みにくさの改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,7 +124,11 @@
|
|
124
124
|
|
125
125
|
</html>
|
126
126
|
|
127
|
+
|
128
|
+
|
127
129
|
入力フォームのコードはこちらです。
|
130
|
+
|
131
|
+
|
128
132
|
|
129
133
|
<?php require '../header.php';?>
|
130
134
|
|
@@ -140,7 +144,11 @@
|
|
140
144
|
|
141
145
|
<?php require '../footer.php';?>
|
142
146
|
|
147
|
+
|
148
|
+
|
143
149
|
出力のコードはこちらです。
|
150
|
+
|
151
|
+
|
144
152
|
|
145
153
|
<?php require'../header.php';?>
|
146
154
|
|
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,3 +9,161 @@
|
|
9
9
|
因みに私が行ったのは、HTML文書をPHPに変えて入出力用のファイルを組み込んだり、HTMLはそのままにして組み込んだりもしてみましたが、上手くいきません。
|
10
10
|
|
11
11
|
なお、HTMLはテキストエディットで編集したもので、画像付きです。
|
12
|
+
|
13
|
+
なお、私が書いたHTMLのファイルはこちらです。
|
14
|
+
|
15
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
16
|
+
|
17
|
+
<html>
|
18
|
+
|
19
|
+
<head>
|
20
|
+
|
21
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
22
|
+
|
23
|
+
<meta http-equiv="Content-Style-Type" content="text/css">
|
24
|
+
|
25
|
+
<title></title>
|
26
|
+
|
27
|
+
<meta name="Generator" content="Cocoa HTML Writer">
|
28
|
+
|
29
|
+
<meta name="CocoaVersion" content="1561.2">
|
30
|
+
|
31
|
+
<style type="text/css">
|
32
|
+
|
33
|
+
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; line-height: 72.0px; font: 48.0px 'Hiragino Sans'; color: #000000; -webkit-text-stroke: #000000}
|
34
|
+
|
35
|
+
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; line-height: 27.0px; font: 18.0px 'Hiragino Sans'; color: #000000; -webkit-text-stroke: #000000}
|
36
|
+
|
37
|
+
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 27.0px; font: 18.0px 'Hiragino Sans'; color: #000000; -webkit-text-stroke: #000000}
|
38
|
+
|
39
|
+
p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Times; color: #000000; -webkit-text-stroke: #000000; min-height: 14.0px}
|
40
|
+
|
41
|
+
p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; line-height: 36.0px; font: 24.0px 'Hiragino Sans'; color: #000000; -webkit-text-stroke: #000000}
|
42
|
+
|
43
|
+
li.li3 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 27.0px; font: 18.0px 'Hiragino Sans'; color: #000000; -webkit-text-stroke: #000000}
|
44
|
+
|
45
|
+
span.s1 {font-kerning: none}
|
46
|
+
|
47
|
+
ul.ul1 {list-style-type: square}
|
48
|
+
|
49
|
+
</style>
|
50
|
+
|
51
|
+
</head>
|
52
|
+
|
53
|
+
<body>
|
54
|
+
|
55
|
+
<p class="p1"><span class="s1"><b>栄田電子研究開発協会(栄田会)</b></span></p>
|
56
|
+
|
57
|
+
<p class="p2"><span class="s1"><br>
|
58
|
+
|
59
|
+
</span></p>
|
60
|
+
|
61
|
+
<p class="p3"><span class="s1">「栄田会」のホームページへようこそ!!</span></p>
|
62
|
+
|
63
|
+
<p class="p3"><span class="s1">このサイトは、私、栄田圭佑が地元・上飯田で主催している飲み会のホームページです。</span></p>
|
64
|
+
|
65
|
+
<img src="/Users/KeisukeSakaeda/Desktop/せごどん.jpg">
|
66
|
+
|
67
|
+
<p class="p3"><span class="s1">(因みに写真の西郷さんは管理人の趣味で載せているだけで、当会とは無関係でございます。)</span></p>
|
68
|
+
|
69
|
+
<img src="/Users/KeisukeSakaeda/Desktop/栄田会ホームページ/せごどん.jpg">
|
70
|
+
|
71
|
+
<p class="p4"><span class="s1"></span><br></p>
|
72
|
+
|
73
|
+
<p class="p4"><span class="s1"></span><br></p>
|
74
|
+
|
75
|
+
<p class="p3"><span class="s1"><br>
|
76
|
+
|
77
|
+
</span></p>
|
78
|
+
|
79
|
+
<p class="p3"><span class="s1"><br>
|
80
|
+
|
81
|
+
</span></p>
|
82
|
+
|
83
|
+
<p class="p3"><span class="s1"><br>
|
84
|
+
|
85
|
+
</span></p>
|
86
|
+
|
87
|
+
<p class="p3"><span class="s1"><br>
|
88
|
+
|
89
|
+
</span></p>
|
90
|
+
|
91
|
+
<p class="p5"><span class="s1"><b>栄田会の沿革</b></span></p>
|
92
|
+
|
93
|
+
<ul class="ul1">
|
94
|
+
|
95
|
+
<li class="li3"><span class="s1">2015年頃にメンバー4人で結成(第1回目はカラオケ会)</span></li>
|
96
|
+
|
97
|
+
<li class="li3"><span class="s1">2016年頃に第2回開催</span></li>
|
98
|
+
|
99
|
+
<li class="li3"><span class="s1">2018年3月に第3回開催</span></li>
|
100
|
+
|
101
|
+
</ul>
|
102
|
+
|
103
|
+
<p class="p3"><span class="s1"><br>
|
104
|
+
|
105
|
+
</span></p>
|
106
|
+
|
107
|
+
<p class="p3"><span class="s1"><br>
|
108
|
+
|
109
|
+
</span></p>
|
110
|
+
|
111
|
+
<p class="p3"><span class="s1"><br>
|
112
|
+
|
113
|
+
</span></p>
|
114
|
+
|
115
|
+
<p class="p3"><span class="s1"><br>
|
116
|
+
|
117
|
+
</span></p>
|
118
|
+
|
119
|
+
<p class="p2"><span class="s1"><br>
|
120
|
+
|
121
|
+
</span></p>
|
122
|
+
|
123
|
+
</body>
|
124
|
+
|
125
|
+
</html>
|
126
|
+
|
127
|
+
入力フォームのコードはこちらです。
|
128
|
+
|
129
|
+
<?php require '../header.php';?>
|
130
|
+
|
131
|
+
<p>投稿するメッセージを入力して下さい</p>
|
132
|
+
|
133
|
+
<form action="board-output.php" method="post">
|
134
|
+
|
135
|
+
<input type="text" name="message">
|
136
|
+
|
137
|
+
<input type="submit" value="投稿">
|
138
|
+
|
139
|
+
</form>
|
140
|
+
|
141
|
+
<?php require '../footer.php';?>
|
142
|
+
|
143
|
+
出力のコードはこちらです。
|
144
|
+
|
145
|
+
<?php require'../header.php';?>
|
146
|
+
|
147
|
+
<?php
|
148
|
+
|
149
|
+
$file='board.txt';
|
150
|
+
|
151
|
+
if(file exists($file)){
|
152
|
+
|
153
|
+
$board=json_decode(file_get_contents($file));
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
$board[]=$_REQUEST['message'];
|
158
|
+
|
159
|
+
file_put_contents($file,json_encode($board));
|
160
|
+
|
161
|
+
foreach($board as $message){
|
162
|
+
|
163
|
+
echo '<p>' , $message, '</p><hr>';
|
164
|
+
|
165
|
+
}
|
166
|
+
|
167
|
+
?>
|
168
|
+
|
169
|
+
<?php require '../fotter.php';?>
|
1
文章の追記
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|