Here's an example: http://pastie.org/386912
It's pretty basic, it just sets a variable in session whenever the form is submitted. The form is then hidden if that's found and set to "1" in the browser.
Let me know if you've got any questions.
Ah! Thank you very much!!!!