1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Security Error Occurs on Form Submit

Discussion in 'XenForo Development Discussions' started by -Ice-, Jul 10, 2012.

  1. -Ice-

    -Ice- Active Member

    Every time I submit a form I made, I get a "Security error occurred. Please press back, refresh the page, and try again." I know it's not the action function or any of the PHP, because I set a different form's action to "storefront-purchase/confirm" and it redirected and everything fine. I looked at a few other forms, and read that I needed that _xftoken, which I have.

    I made this incredibly simple (and ugly) test form, and it also doesn't work:
    <form class="xenForm AutoValidate" data-redirect="on" method="post" action="{xen:link storefront-purchase/confirm}" >
    <input type="submit" />
    <input type="hidden" name="_xftoken" value="{$visitor.csrf_token_page}" />
    Any help would be appreciated :)
  2. ragtek

    ragtek Guest

    <input type="hidden" name="_xfToken" value="{$visitor.csrf_token_page}" />
    tenants likes this.
  3. -Ice-

    -Ice- Active Member

    Thanks a million. It's always the little things...
    tenants likes this.

Share This Page