mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Update README.md
This commit is contained in:
@@ -716,7 +716,7 @@ You can change the key by overwriting the constant in your own CSRF-verifier cla
|
|||||||
|
|
||||||
The example below will post to the current url with a hidden field "`csrf_token`".
|
The example below will post to the current url with a hidden field "`csrf_token`".
|
||||||
|
|
||||||
```php
|
```html
|
||||||
<form method="post" action="<?= url(); ?>">
|
<form method="post" action="<?= url(); ?>">
|
||||||
<input type="hidden" name="csrf_token" value="<?= csrf_token(); ?>">
|
<input type="hidden" name="csrf_token" value="<?= csrf_token(); ?>">
|
||||||
<!-- other input elements here -->
|
<!-- other input elements here -->
|
||||||
|
|||||||
Reference in New Issue
Block a user