AdobeStock_455007340

Preventing Refresh From Resubmitting Forms

At one time or another we’ve all had to wrestle with how to prevent users from hitting the Refresh button when a form ACTION page is being displayed so as to prevent the form from being resubmitted. One simple solution is to never actually display the ACTION page, instead, once the processing is complete use to display a different page (possibly the exact same output as you’d have displayed in the ACTION page.) This way when a user hits Refresh the relocated page is reprocessed, not the form ACTION page. (Applies to: ColdFusion All)

Leave a Reply