diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/archive/index.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/archive/index.php b/views/archive/index.php index 2c784de..7d41890 100644 --- a/views/archive/index.php +++ b/views/archive/index.php @@ -16,8 +16,13 @@ <form action="#" method="POST"> <input type="hidden" name="page_url" value="<?= $url ?>"> + <input id="token" type="hidden" name="token" value=""> <input type="submit" value="Archive Now!"> </form> + <script type="text/javascript"> + const tokenInput = document.getElementById('token'); + tokenInput.value = sessionStorage.getItem('token'); + </script> <!-- Button to add to list --> <!-- Button to delete --> @@ -54,7 +59,12 @@ <h2>"<?= $url ?>" hasn't been archived yet!</h2> <form action="#" method="POST"> <input type="hidden" name="page_url" value="<?= $url ?>"> + <input id="token" type="hidden" name="token" value=""> <input type="submit" value="Archive Now!"> </form> + <script type="text/javascript"> + const tokenInput = document.getElementById('token'); + tokenInput.value = sessionStorage.getItem('token'); + </script> <?php endif; ?> |
