回答編集履歴
1
ちょうせい
test
CHANGED
@@ -37,3 +37,41 @@
|
|
37
37
|
var_dump($_POST);
|
38
38
|
|
39
39
|
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
# 逆パターン
|
44
|
+
|
45
|
+
- mypage.php
|
46
|
+
|
47
|
+
```PHP
|
48
|
+
|
49
|
+
<?PHP
|
50
|
+
|
51
|
+
var_dump($_POST);
|
52
|
+
|
53
|
+
?>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<form method="POST" action="redirect.php" name="simple_form">
|
58
|
+
|
59
|
+
<input type="submit" name="test" value="1">
|
60
|
+
|
61
|
+
</form>
|
62
|
+
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
- redirect.php
|
68
|
+
|
69
|
+
```PHP
|
70
|
+
|
71
|
+
<?PHP
|
72
|
+
|
73
|
+
header('Location: '.$_SERVER["HTTP_REFERER"], true, 307);
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```
|