Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent refresh page error while submitting POST form?

When registration form submits using POST method and when you refresh the same page then it will prompt for resubmit or resend information. How we can prevent this?

like image 886
limo Avatar asked Apr 11 '26 09:04

limo


1 Answers

Use post-redirect-get. In short:

enter image description here

like image 80
Matt Ball Avatar answered Apr 13 '26 21:04

Matt Ball



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!