Ok… so I have this contact form I am working on. Right now it’s in the debugging phase.
I have assigned required fields and ensured they are filled in.
I have checked to make sure the email address is “somewhat” valid.
I have made error messages to display only if a message is assigned to the error global variable.
MY QUESTION, yes I have one!
Since my error messages are global using sessions, when I make a mistake they show up and tell me “Fill in the…” and once I fill in the fields correctly and then get my “Thanks alot…” message, how do I get that error message to go away if I return back to the page before I close my browser. Because if I navagate away from the “Thanks…” message and then go back to the contact page – the last error message still shows up. How can I fix this.
Yes, that was long-winded but…
Do I create a variable to check if sessions are there and reset them if they are? I guess maybe I could at the end of the success message since everything is being sent and good.
I don’t know if it makes a difference, but all my code is on one page that POST to itself.
Thx