Closed ZenitH-AT closed 6 years ago
The main issue is that our system is very susceptible to page refreshes resubmitting form data and inserting duplicate records. We don't have a lot of time but I will research more later in the week.
Just need to implement something like this:
$get_info = "?paid"; //for example... we dont always need to use this
header("Location: ".$_SERVER['REQUEST_URI'].$get_info);
exit();
We would include $get_info in places where there is an if statement that uses the get parameter (e.g. payment page success dissmissable).
This could be done to remove all the lazily implemented js popups i used
https://en.wikipedia.org/wiki/Post/Redirect/Get