Troubles with a PHP session variable after form submission
Posted
by Psyche
on Stack Overflow
See other posts from Stack Overflow
or by Psyche
Published on 2010-06-15T23:18:04Z
Indexed on
2010/06/15
23:22 UTC
Read the original article
Hit count: 188
Hello,
I'm setting a PHP session variable with a success message for a HTML form that I'm submitting. If there are no form errors, I redirect to the same page (using header()) and display the message from the session variable. Everything is fine until here, but if I access that page again after submission, the message is still there. Is it possible to make it appear only when I redirect after a successful submit?
Thank you.
© Stack Overflow or respective owner