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.

Archive

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

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

Problem with post forms


Reply

2 Posts   1323 Views

Avatar
blaater

6 March 2008 at 6:38am Community Member, 22 Posts

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

12 August 2008 at 12:12am Community Member, 6 Posts

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