回答編集履歴
1
submitの処理
answer
CHANGED
@@ -43,4 +43,23 @@
|
|
43
43
|
ErrorLog "logs/dummy-host2.example.com-error_log"
|
44
44
|
CustomLog "logs/dummy-host2.example.com-access_log" common
|
45
45
|
</VirtualHost>
|
46
|
-
```
|
46
|
+
```
|
47
|
+
|
48
|
+
## 追記
|
49
|
+
### submitの処理
|
50
|
+
```php
|
51
|
+
<?php if($pageFlag === 2 ) : ?>
|
52
|
+
<?php if($_POST['csrf'] === $_SESSION['csrfToken']) :?>
|
53
|
+
送信が完了しました。
|
54
|
+
|
55
|
+
<?php unset($_SESSION['csrfToken']); ?>
|
56
|
+
<?php endif; ?>
|
57
|
+
<?php endif; ?>
|
58
|
+
```
|
59
|
+
この `$pageFlag === 2` の場合に `insert.php` の処理を呼ぶ必要があるのでは?
|
60
|
+
|
61
|
+
### index.phpの設置
|
62
|
+
`/Applications/MAMP/htdocs/phpinfo.php`
|
63
|
+
このファイル名を、
|
64
|
+
`/Applications/MAMP/htdocs/index.php`
|
65
|
+
に変えてみてください。
|