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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Allowing only one form submission per session


Go to End


3 Posts   1581 Views

Avatar
Yellow7 Jon

Community Member, 39 Posts

12 February 2009 at 10:49am

any word on this ? client keeps wondering if this is possible...

Previous thread
http://silverstripe.org/archive/show/221543

Avatar
Sean

Forum Moderator, 922 Posts

12 February 2009 at 11:24pm

Here's an example: http://pastie.org/386912

It's pretty basic, it just sets a variable in session whenever the form is submitted. The form is then hidden if that's found and set to "1" in the browser.

Let me know if you've got any questions.

Cheers,
Sean

Avatar
Yellow7 Jon

Community Member, 39 Posts

13 February 2009 at 10:26am

Ah! Thank you very much!!!!