質問編集履歴
1
htmlコードを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,9 +24,31 @@
|
|
24
24
|
|
25
25
|
### 該当のソースコード
|
26
26
|
|
27
|
+
index.html
|
28
|
+
|
29
|
+
```html
|
30
|
+
|
31
|
+
<form action="test.php" method="get">
|
32
|
+
|
33
|
+
<p><label><input type="checkbox" id="reset_1" name="asdf[]" value="hogehoge">コメント</label></p>
|
34
|
+
|
35
|
+
<p><label><input type="checkbox" id="reset_2" name="asdf[]" value="hogehoge1">コメント</label></p>
|
36
|
+
|
37
|
+
<p><label><input type="checkbox" id="reset_3" name="asdf[]" value="hogehoge2">コメント</label></p>
|
38
|
+
|
39
|
+
<p><label><input type="checkbox" id="reset_4" name="asdf[]" value="hogehoge3">コメント</label></p>
|
40
|
+
|
41
|
+
<p><label><input type="checkbox" id="reset_5" name="asdf[]" value="hogehoge4">コメント</label></p>
|
42
|
+
|
27
|
-
|
43
|
+
</form>
|
44
|
+
|
45
|
+
```
|
28
46
|
|
29
47
|
|
48
|
+
|
49
|
+
test.php
|
50
|
+
|
51
|
+
```php
|
30
52
|
|
31
53
|
if(array_key_exists("hogehoge",$_GET["asdf"])) {
|
32
54
|
|
@@ -34,7 +56,7 @@
|
|
34
56
|
|
35
57
|
}
|
36
58
|
|
37
|
-
|
59
|
+
```
|
38
60
|
|
39
61
|
|
40
62
|
|