Displaying error messages with PHP
<p>I want to display an error if a user tries to go to <code>/admin/</code> when they aren't logged in as an admin. I don't want to pass stuff in the URL and I do not want to do a <code>$_POST</code> to display the error. I just want to display a message and when you refresh it is gone. </p>

<p>For example, go to this URL: <a href="http://getsatisfaction.com/getsatisfaction/topics/notifications_box/edit" rel="nofollow">http://getsatisfaction.com/getsatisfaction/topics/notifications_box/edit</a></p>

<p>It returns you back to the topic and says "I'm sorry, but you have been denied access to edit this topic."</p>

<p>When you refresh it is gone. I want to be able to display an error like that too. Does anyone know how they did that? </p>

<p>I've seen other sites do this as well (without appending an <code>?error=1</code> to the end of the URL).</p>

<p>Thanks in advance. </p>
