Created
November 7, 2014 07:53
-
-
Save sensityy/8ae2b54773785e7ca372 to your computer and use it in GitHub Desktop.
Revisions
-
sensityy created this gist
Nov 7, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <?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>"; ?>