Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. if(!isset($_SESSION['name'])){// validate the login if session value is not equal do next step .
  5.  
  6. header('Location:index.html');// redirect the page.
  7.  
  8. }
  9. ?>
  10. <!DOCTYPE html>
  11. <html>
  12. <head>
  13. <title>min dropbox</title>
  14. <link rel="stylesheet" href="style.css">
  15.  
  16. </head>
  17.  
  18.  
  19.  
  20. <body>
  21.  
  22.  
  23. <aside>
  24. <?php echo $_SESSION['name']." Login Sucessfully!!";?>
  25. <!--show session variable and give message -->
  26. <a href = "logout.php"><button type= "submit"> logout </button> </a>
  27. </aside>
  28.  
  29. <h1>home page</h1>
  30.  
  31. <form>
  32. <input type="text" />
  33. <button type= "submit"> delete </button>
  34. <button type= "submit"> rename </button>
  35. <button type= "submit"> download </button>
  36. <button type= "submit"> share </button>
  37. <br/>
  38. <input type="text" />
  39.  
  40. <button type= "submit"> delete </button>
  41. <button type= "submit"> rename </button>
  42. <button type= "submit"> download </button>
  43. <button type= "submit"> share </button>
  44.  
  45. </form>
  46.  
  47. </body>
  48. <footer><p>Create by : MIN KO</p><p>Contact information:<a href="mingotom@gmail.com">mingotom@gmail.com</a></p> </footer>
  49.  
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement