Page 1 of 1

Refreshing session pages

Posted: Sat Feb 14, 2004 8:06 am
by MarbleKittyKat
Does anybody know how to stop the following occurring?

- I write a message in the form in my forums script
- I click submit, and it comes up with a deliberate error (such as it has found a swear word which isn't allowed)
- When I click Back to go and edit the message, I have to retype the whole thing because it is no longer in the textarea

I think it might be because I am using it all on one page:
if (!isset($message)) { print form }
if (isset($message)) { check for errors }

Or something..

Any suggestions?

Posted: Sat Feb 14, 2004 8:08 am
by markl999
When I click Back
Is this a 'back' button you've got on the form, or do you mean the 'back' button in the browser?

Posted: Sat Feb 14, 2004 9:03 am
by MarbleKittyKat
Sorry - I meant in the browser.