You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you have to use Twig? Because I'm trying the example without Twig here, and it's not finding the token. However, when I echo $_POST, it is showing a token, eg: [_CSRF_TOKEN] => XXXXXXX= (substituting 'XXXXXXX' for the token).
Do you have to use Twig? Because I'm trying the example without Twig here, and it's not finding the token. However, when I echo $_POST, it is showing a token, eg:
[_CSRF_TOKEN] => XXXXXXX=
(substituting 'XXXXXXX' for the token).In the form, I have:
On the action page, I have:
... and it results in 'Token is invalid'.
I am referencing the class in both the form and the action page with:
Do I need a hidden input on the form, if not using Twig? I tried;
<input type="hidden" name="form_token" value="<?php echo $token_html; ?>">
The text was updated successfully, but these errors were encountered: