Problem with confirm.php
The problem seems to be that the expression:
(isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0)
...doesn't evaluate to true, therefore nothing is triggered and it goes to the failure page.
I can see the values of each of the variables, and can't figure out why it's not working.