The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple Forms
#6
I've opted to go with moving the token check and generation to the header and echoing $token in each form. Most of my employees aren't too tech-savvy and will try to submit a form multiple times (or even order the same item for a customer several times), and it was easier for me to use the CSRF check already in place than to code checks to see if a form was already submitted.

In other projects though I've used something similar to the library that Firestorm posted above.
  Reply


Messages In This Thread
Multiple Forms - by Brandin - 06-25-2017, 12:54 PM
Multiple Forms - by faguss - 07-14-2017, 10:26 PM
Multiple Forms - by firestorm - 07-15-2017, 06:56 AM
Multiple Forms - by firestorm - 07-15-2017, 06:57 AM
Multiple Forms - by firestorm - 07-15-2017, 11:20 AM
Multiple Forms - by karsen - 07-15-2017, 02:56 PM
Multiple Forms - by firestorm - 07-15-2017, 03:11 PM
Multiple Forms - by karsen - 07-15-2017, 04:33 PM
Multiple Forms - by firestorm - 07-15-2017, 04:45 PM
Multiple Forms - by karsen - 07-15-2017, 04:56 PM
Multiple Forms - by firestorm - 07-15-2017, 05:29 PM
Multiple Forms - by karsen - 07-15-2017, 06:03 PM
Multiple Forms - by firestorm - 07-15-2017, 07:17 PM
Multiple Forms - by bladerunner - 12-14-2017, 11:51 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)