-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathform.php
More file actions
38 lines (33 loc) · 1.19 KB
/
form.php
File metadata and controls
38 lines (33 loc) · 1.19 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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>入力フォーム</title>
</head>
<body>
<h1>入力フォーム</h1>
<form action="./dataRegist.php" method="POST">
<p>お店の名前:<input type="text" name="Restaurant_name">
<?php if (isset($errs['Restaurant_name'])) {
echo $errs['Restaurant_name'];
}
?></p>
<p>お店のエリア:<input type="text" name="Restaurant_erea">
<?php if (isset($errs['Restaurant_erea'])) {
echo $errs['Restaurant_erea'];
} ?></p>
<p>料理のジャンル:<input type="text" name="Restaurant_genre">
<?php if (isset($errs['Restaurant_genre'])) {
echo $errs['Restaurant_genre'];
}
?></p>
<p>一言メッセージ:<input type="text" name="Restaurant_message">
<?php if (isset($errs['Restaurant_message'])) {
echo $errs['Restaurant_message'];
}
?></p>
</table>
<p><input type="submit" value="登録する"></p>
</form>
</body>
</html>