Created
September 1, 2016 19:34
-
-
Save YurePereira/c9103ff5263fcf6213f9cdb37fadf931 to your computer and use it in GitHub Desktop.
Codeigniter: Getting Codeigniter CSRF token without form_close()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| //Example: 1: | |
| $csrf_token_name = $this->security->get_csrf_token_name(); | |
| $get_csrf_hash = $this->security->get_csrf_hash(); | |
| ?> | |
| <input | |
| type="hidden" | |
| name="<?php echo $csrf_token_name; ?>" | |
| value="<?php echo $get_csrf_hash; ?>"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment