On Wednesday, April 24, 2002, at 02:59 PM, Julio Nobrega Trabalhando
wrote:
> And this is how I use it:
>
> if (isset($_SESSION['forum']['error']['insert'])) {
> echo showError($_SESSION['forum']['error']['insert']));
> }
Try this:
function showError(&$mensagem)
{
// print whatever here
unset($GLOBALS['mensagem']);
}
Try that without the pass-by-reference ('&') too, if it doens't work.
According to http://www.php.net/manual/en/function.unset.php, you might
not be able to do it without explicitly trying
unset($_SESSION['forum']['error']['insert']);
Good luck,
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php