Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Problem with post forms


Go to End


2 Posts   2049 Views

Avatar
blaater

Community Member, 22 Posts

6 March 2008 at 6:38am

Hello,

I'm having some problems with my website. I've made a custom module for my website and the only thing it does at the moment is showing the profile of a member and a form for editting the profile. The form has worked fine, but when I try to save the form now, silverstripe shows an error :

FATAL ERROR: Security ID doesn't match, possible CRSF attack.

After some research I found out that you can disable the security with the disableSecurityToken function. I did this and in the save function of the form I printed the Data array. It's empty except for the url and executeForm values which are get values. The rest of the form is post.

Does anybody know what to do?
Thanks in advance!

Avatar
cideas

Community Member, 6 Posts

12 August 2008 at 12:12am

I'm having this same problem. My code is here http://pastebin.com/m943fbe0