PRG Pattern and Sticky Forms

Posted by Scott Christopherson on Stack Overflow See other posts from Stack Overflow or by Scott Christopherson
Published on 2010-04-18T07:19:45Z Indexed on 2010/04/18 7:23 UTC
Read the original article Hit count: 358

Filed under:
|
|

I'm using the PRG pattern on a form of mine. I've never used this approach before and I'm trying to figure something out:

Normally, I always just displayed the posted form again when there were validation errors and displayed POST values in the form (sticky form). However with the PRG pattern, the form is displayed after a redirect, so there aren't any POST values.

So my question is, how can I implement the PRG pattern and still have sticky forms?

© Stack Overflow or respective owner

Related posts about forms

Related posts about php