I'm building a database website using PHP, Dreamweaver CS3, and MySQL. It's based pretty much on built on Dreamweaver's built in dynamic content templates. The pages follow CS3's style in that they post to themselves, and if they encounter a mysql error, then they die() with some relevant error message.
Problem is, after the page dies, if I hit the back button on the browser the form is blanked out. I can't go back to what I had previously typed in before hitting submit.
I've seen IE and FF "cache" the text you had typed in in previous forms in their history, so when you go back, the text is still there. Is there a way to turn this on on my page? Or does anyone know the reason why it isn't happening on mine?
Note: I'm not talking about restoring the values of the textboxes using PHP and the $_POST array when a page comes back with validation errors. I mean using the browser's back button and showing an older, cached form with text in it.