My website follows the Post-Redirect-Get pattern.
There seems to be 2 ways to deal with failed validation. Either:
Do both of these implementations follow the PRG pattern?
Is there a more specific way to describe either of these patterns?
I am asking primarily for educational sake.
Since no one has answered, I'm going to suggest my own answer.
PRG Strict means that the POST redirects even if there is a validation error. It temporarily stores the validation messages, redirects to the same URL, and displays the validation messages.
PRG Loose means that the POST does not redirect when there are validation errors. The form will be redisplayed, along with the error messages.
How does this sound?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With