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.

Revisions

  1. sensityy created this gist Nov 7, 2014.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original 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>";

    ?>