質問編集履歴
3
一部の編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,10 +5,11 @@
|
|
5
5
|
# ソースコード
|
6
6
|
form.php
|
7
7
|
```html
|
8
|
-
<form action="up.php" method="post"
|
8
|
+
<form action="up.php" method="post">
|
9
9
|
<input type="file" name="file">
|
10
10
|
<input type="submit" name="submit" value="送信">
|
11
11
|
</form>
|
12
|
+
<!-- enctype="multipart/form-data" の付け忘れ -->
|
12
13
|
```
|
13
14
|
up.php
|
14
15
|
```php
|
2
一部の編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# ソースコード
|
6
6
|
form.php
|
7
7
|
```html
|
8
|
-
<form action="up.php" method="post" enctype="
|
8
|
+
<form action="up.php" method="post" enctype="multipart/form-data">
|
9
9
|
<input type="file" name="file">
|
10
10
|
<input type="submit" name="submit" value="送信">
|
11
11
|
</form>
|
1
enctypeの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# ソースコード
|
6
6
|
form.php
|
7
7
|
```html
|
8
|
-
<form action="up.php" method="post">
|
8
|
+
<form action="up.php" method="post" enctype="application/x-www-form-urlencoded">
|
9
9
|
<input type="file" name="file">
|
10
10
|
<input type="submit" name="submit" value="送信">
|
11
11
|
</form>
|