回答編集履歴

1

動作サンプルの追加

2021/01/13 08:01

投稿

kai0310
kai0310

スコア2076

test CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
 
6
6
 
7
+ [動作サンプル - paiza.io](https://paiza.io/projects/nNoCPp7a9P6djb_lVO3DOQ)
8
+
9
+
10
+
7
11
  ```PHP
8
12
 
9
13
  <?php
@@ -52,7 +56,7 @@
52
56
 
53
57
  }
54
58
 
55
- if (empty($_POST['honbun'])){
59
+ if (empty($_POST['honbun'])) {
56
60
 
57
61
  $error_honbun = "本文を入力してください\n";
58
62
 
@@ -174,29 +178,29 @@
174
178
 
175
179
  <form action="index.php" method="post">
176
180
 
177
- <input type="hidden" name="mode" value="submit">
181
+ <input type="hidden" name="mode" value="submit">
178
-
182
+
179
- <input type="hidden" name="namae" value="<?php echo $namae; ?>">
183
+ <input type="hidden" name="namae" value="<?php echo $namae; ?>">
180
-
184
+
181
- <input type="hidden" name="email" value="<?php echo $email; ?>">
185
+ <input type="hidden" name="email" value="<?php echo $email; ?>">
182
-
186
+
183
- <input type="hidden" name="honbun" value="<?php echo $honbun; ?>">
187
+ <input type="hidden" name="honbun" value="<?php echo $honbun; ?>">
184
-
188
+
185
- <p><button type="submit">送信</button></p>
189
+ <p><button type="submit">送信</button></p>
186
190
 
187
191
  </form>
188
192
 
189
193
  <form action="index.php" method="post">
190
194
 
191
- <input type="hidden" name="mode" value="input">
195
+ <input type="hidden" name="mode" value="input">
192
-
196
+
193
- <input type="hidddn" name="namae" value="<?php echo $namae; ?>">
197
+ <input type="hidddn" name="namae" value="<?php echo $namae; ?>">
194
-
198
+
195
- <input type="hidden" name="email" value="<?php echo $email; ?>">
199
+ <input type="hidden" name="email" value="<?php echo $email; ?>">
196
-
200
+
197
- <input type="hidden" name="honbun" value="<?php echo $honbun; ?>">
201
+ <input type="hidden" name="honbun" value="<?php echo $honbun; ?>">
198
-
202
+
199
- <p><button type="submit">戻る</button></p>
203
+ <p><button type="submit">戻る</button></p>
200
204
 
201
205
  </form>
202
206