ローカル掲示板①
今回はPHPの学習を兼ねて掲示板を作っていきます。
![](https://tomokichi.blog/wp-content/uploads/2020/09/amelie-mourichon-fGK2g-3_pGE-unsplash-scaled-e1599985178567-1024x448.jpg)
①ベース作成
まずは掲示板のベースを作っていきます。HTMLを使いますね。
![](https://tomokichi.blog/wp-content/uploads/2020/09/bord-1-e1599990861812.png)
とりあえずこんな感じにします。
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>MessageBoard</title>
</head>
<body>
<h2>ローカル掲示板</h2>
<form action="board.php" method="post">
<div>
<label>投稿者 <input type="text" name="user"></label><br>
</div>
<div>
<label>コメント<textarea name="message"></textarea></label><br>
</div>
<button>投稿</button>
</form>
<h2>コメント欄</h2>
</body>
</html>
コードを置いておきます。次回はPHPを追加していきます。
![](https://www11.a8.net/0.gif?a8mat=3BM0VH+DUBU42+50+2HN8K1)
“ローカル掲示板①” に対して3件のコメントがあります。