Skip to content

Instantly share code, notes, and snippets.

@sensityy
Created November 7, 2014 07:53
Show Gist options
  • Select an option

  • Save sensityy/8ae2b54773785e7ca372 to your computer and use it in GitHub Desktop.

Select an option

Save sensityy/8ae2b54773785e7ca372 to your computer and use it in GitHub Desktop.
<?php
//SESSION MESSAGE SHOWN - [NEED: IN FUNCTION]
if(isset($_SESSION['message']))
{
//Shows the message.
echo $_SESSION['message'];
//Unset's the session after the message has been shown
unset($_SESSION['message']);
}
$_SESSION['message'] = "<div class='alert alert-success'>Du har oprettet en bruger.</div>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment