Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Damian Sefton
Damian Sefton
7,198 Points

Post/Redirect/Get (PRG)

Hi,

I am developing some complex html forms and I am trying to get my head around the best way to prevent repeat user submissions. Post/Redirect/Get (PRG) seems to be the best way but I couldn't find anything on treehouse, does anyone have any good suggestions?

Thanks,

Len

2 Answers

Well you can do by start or end session, This way you can track if user already filled the form.

or you can also create a new field inside your form and hide it to check.