File: bienvenue.php - Tab length: 1 2 4 8 - Lines: on off - No wrap: on off

01: 
02: <html>
03: <head>
04:   <meta charset="UTF-8" />
05: 
06:      <title> Session </title>
07:    <?php
08:         session_start();
09:       if($_SESSION['loggedin'] == false)
10:       {
11:           header("location:index.php?problem=notLoggedIn");
12:         exit;
13:       }
14:      
15:       $name = $_SESSION['name'];
16:       ?>
17:       </head>
18:      
19:       <body>
20:       <h1> Bonjour,
21:       <?php print ($name) ; ?>
22:       </h1>
23:       <form id ="form1" name="form1" method="post" action="logoff.php">
24:       <p>
25:        <input type="submit" name="loginButton" id="loginButton" value="D�connexion"/>
26:        </p>
27:        </form>
28:        </body>
29:        </html>