I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitted again with
I would also like to point out that you can use a javascript approach, window.history.replaceState to prevent a resubmit on refresh and back button.
Proof of concept here: https://dtbaker.net/files/prevent-post-resubmit.php
I would still recommend a Post/Redirect/Get approach, but this is a novel JS solution.