質問編集履歴
3
コード編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,17 @@
|
|
10
10
|
|
11
11
|
searchform.php で
|
12
12
|
|
13
|
+
```php
|
14
|
+
|
13
|
-
<
|
15
|
+
<input type="text" name="s" id="s" placeholder="検索" />//検索ワード
|
14
16
|
|
15
17
|
<input type="text" name="product_number">//品番
|
16
18
|
|
17
|
-
<input type="radio" name="product_category">//カテゴリ
|
19
|
+
<input type="radio" name="product_category">//カテゴリ
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
```
|
18
24
|
|
19
25
|
|
20
26
|
|
@@ -22,7 +28,9 @@
|
|
22
28
|
|
23
29
|
|
24
30
|
|
31
|
+
```php
|
32
|
+
|
25
|
-
|
33
|
+
if($_GET['s']){$s = $_GET['s'];}//フリーワード
|
26
34
|
|
27
35
|
if($_GET['product_number']){$product_number = $_GET['product_number'];}
|
28
36
|
|
@@ -64,7 +72,11 @@
|
|
64
72
|
|
65
73
|
)
|
66
74
|
|
67
|
-
|
75
|
+
```
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
68
80
|
|
69
81
|
|
70
82
|
|
2
コード編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
searchform.php で
|
12
12
|
|
13
|
-
|
13
|
+
<code><input type="text" name="s" id="s" placeholder="検索" />//検索ワード
|
14
14
|
|
15
15
|
<input type="text" name="product_number">//品番
|
16
16
|
|
17
|
-
<input type="radio" name="product_category">//カテゴリ
|
17
|
+
<input type="radio" name="product_category">//カテゴリ</code>
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
|
25
|
+
<code>if($_GET['s']){$s = $_GET['s'];}//フリーワード
|
26
26
|
|
27
27
|
if($_GET['product_number']){$product_number = $_GET['product_number'];}
|
28
28
|
|
@@ -62,7 +62,9 @@
|
|
62
62
|
|
63
63
|
)
|
64
64
|
|
65
|
-
)
|
65
|
+
)
|
66
|
+
|
67
|
+
</code>
|
66
68
|
|
67
69
|
|
68
70
|
|
1
コードの編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
searchform.php で
|
12
12
|
|
13
|
-
<input type="text" name="s" id="s" placeholder="検索" />//検索ワード
|
13
|
+
```<input type="text" name="s" id="s" placeholder="検索" />//検索ワード
|
14
14
|
|
15
15
|
<input type="text" name="product_number">//品番
|
16
16
|
|
17
|
-
<input type="radio" name="product_category">//カテゴリ
|
17
|
+
<input type="radio" name="product_category">//カテゴリ```
|
18
18
|
|
19
19
|
|
20
20
|
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
if($_GET['s']){$s = $_GET['s'];}//フリーワード
|
25
|
+
```if($_GET['s']){$s = $_GET['s'];}//フリーワード
|
26
26
|
|
27
27
|
if($_GET['product_number']){$product_number = $_GET['product_number'];}
|
28
28
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
)
|
64
64
|
|
65
|
-
)
|
65
|
+
)```
|
66
66
|
|
67
67
|
|
68
68
|
|