質問編集履歴

1

コードの書き方を間違えていました

2020/01/14 15:00

投稿

Smith.A
Smith.A

スコア16

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ### 該当のソースコード
18
18
 
19
- 【changeicon.php】
19
+ ```【changeicon.php】
20
20
 
21
21
  <?php
22
22
 
@@ -132,27 +132,27 @@
132
132
 
133
133
  <dt>写真など</dt>
134
134
 
135
- <dd>
135
+ <dd>
136
136
 
137
137
  <input type="file" name="reimage" size="35" value="test" />
138
138
 
139
139
  <?php if($error['icon'] === 'type'):?>
140
140
 
141
- <p class="error">[.jpg] [.png] [.gif]の画像を設定してください</p>
141
+ <p class="error">[.jpg] [.png] [.gif]の画像を設定してください</p>
142
-
142
+
143
- <?php endif; ?>
143
+ <?php endif; ?>
144
144
 
145
145
  <?php if($error['icon'] === 'blank'):?>
146
146
 
147
- <p class="error">画像を選択してください</p>
147
+ <p class="error">画像を選択してください</p>
148
-
148
+
149
- <?php endif; ?>
149
+ <?php endif; ?>
150
-
150
+
151
- <?php if(!empty($error)): ?>
151
+ <?php if(!empty($error)): ?>
152
-
152
+
153
- <p class="error">恐れ入りますが画像を改めて選択ください</p>
153
+ <p class="error">恐れ入りますが画像を改めて選択ください</p>
154
-
154
+
155
- <?php endif; ?>
155
+ <?php endif; ?>
156
156
 
157
157
  </dd>
158
158
 
@@ -240,9 +240,9 @@
240
240
 
241
241
  <?php if($_SESSION['icon']['reimage'] !== ''): ?>
242
242
 
243
- <img src="/member_picture/<?php print(htmlspecialchars($_SESSION['icon']['reimage'], ENT_QUOTES)); ?>">
243
+ <img src="/member_picture/<?php print(htmlspecialchars($_SESSION['icon']['reimage'], ENT_QUOTES)); ?>">
244
-
244
+
245
- <?php endif; ?>
245
+ <?php endif; ?>
246
246
 
247
247
  </dd>
248
248
 
@@ -252,7 +252,7 @@
252
252
 
253
253
  </form>
254
254
 
255
-
255
+ ```
256
256
 
257
257
 
258
258