Custom forms - Post, redirect, get

(Gavin) #1

Matrix v5.5.6.6


I have a custom form where I have provided bodycopies for the Page Contents and Thank You pages.
The form works fine but if the thank you page is left open, a refresh will resubmit it (or I believe some browsers will refresh automatically).
Is there a best practice with Matrix for avoiding this ?
Traditional web development would usually require the use of a PRG pattern ( or a single use token.

Any help appreciated.