02-25-2016, 11:09 PM
http://hastebin.com/uwujudaloc.xml
I did something stupid. The check needed to be above the form. Above is an example of my token.php file.
Also, if you're going to send info to a parser file and send it back
with ajax/jquery whatever, here's the order of operations.
1. Generate the token in the form.
2. Check the token in the parser file itself
3. Generate a new token in the parser file
4. Use Ajax/JQ to update the value of the hidden input in the form
with the new token value
I did something stupid. The check needed to be above the form. Above is an example of my token.php file.
Also, if you're going to send info to a parser file and send it back
with ajax/jquery whatever, here's the order of operations.
1. Generate the token in the form.
2. Check the token in the parser file itself
3. Generate a new token in the parser file
4. Use Ajax/JQ to update the value of the hidden input in the form
with the new token value