Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(!isset($_SESSION['name'])){// validate the login if session value is not equal do next step .
- header('Location:index.html');// redirect the page.
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>min dropbox</title>
- <link rel="stylesheet" href="style.css">
- </head>
- <body>
- <aside>
- <?php echo $_SESSION['name']." Login Sucessfully!!";?>
- <!--show session variable and give message -->
- <a href = "logout.php"><button type= "submit"> logout </button> </a>
- </aside>
- <h1>home page</h1>
- <form>
- <input type="text" />
- <button type= "submit"> delete </button>
- <button type= "submit"> rename </button>
- <button type= "submit"> download </button>
- <button type= "submit"> share </button>
- <br/>
- <input type="text" />
- <button type= "submit"> delete </button>
- <button type= "submit"> rename </button>
- <button type= "submit"> download </button>
- <button type= "submit"> share </button>
- </form>
- </body>
- <footer><p>Create by : MIN KO</p><p>Contact information:<a href="mingotom@gmail.com">mingotom@gmail.com</a></p> </footer>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement