回答編集履歴
1
追記
answer
CHANGED
|
@@ -4,4 +4,20 @@
|
|
|
4
4
|
```
|
|
5
5
|
http://example.com/?hogehoge=
|
|
6
6
|
```
|
|
7
|
-
となるならできそうですが、空でいいので値がないと厳しいような・・・
|
|
7
|
+
となるならできそうですが、空でいいので値がないと厳しいような・・・
|
|
8
|
+
|
|
9
|
+
# sample
|
|
10
|
+
```PHP
|
|
11
|
+
<?PHP
|
|
12
|
+
$s=filter_input(INPUT_GET,"s");
|
|
13
|
+
$h["s"]=is_null($s)?"":htmlspecialchars($s);
|
|
14
|
+
print <<<eof
|
|
15
|
+
<form method="get">
|
|
16
|
+
<input type="text" name="s" value="{$h["s"]}">
|
|
17
|
+
<button type="submit" name="animals" value="cat">猫</button>
|
|
18
|
+
<button type="submit" name="animals" value="dog">犬</button>
|
|
19
|
+
<button type="submit" name="animals" value="rabbit">うさぎ</button>
|
|
20
|
+
</form>
|
|
21
|
+
eof;
|
|
22
|
+
|
|
23
|
+
```
|