Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4.  
  5. <!DOCTYPE html>
  6. <html lang="pl-PL">
  7.  
  8. <head>
  9. <meta charset="UTF-8">
  10. <title>ciasteczka</title>
  11.  
  12. <link rel="stylesheet" href="styles/style.css"/>
  13. <link rel="stylesheet" href="styles/dziekujemy.css"/>
  14. </head>
  15.  
  16. <body>
  17.  
  18. <nav id="menu">
  19. <a href="index.php">Strona główna</a>
  20. <a href="rejestracja.php"><mark>Rejestracja</mark></a>
  21. <a href="mojeKonto.php">Moje konto</a>
  22. <a href="logowanie.php">Logowanie</a>
  23. <a href="readCookies.php">Ciasteczka</a>
  24. <a href="wylogowanie.php">Wyloguj</a>
  25. <div id="google-search-menu">
  26. <form action="index.php">
  27. Szukaj w Google: <input type="search"> <input type="submit" value="szukaj">
  28. </form>
  29. </div>
  30. </nav>
  31.  
  32. <div id="content">
  33. <?php
  34. session_start();
  35. print("<p> Wartości z _SESSION </p>");
  36. foreach ($_SESSION As $KEY=>$value) {
  37. print("<p> $KEY: $value</p>");
  38. $_COOKIE[$KEY]=$value;
  39. }
  40. echo nl2br ("\n") ;
  41. print("<p>Wszystkie ciasteczka</p>");
  42. foreach ($_COOKIE As $KEY=>$value){
  43. print("<p> $KEY: $value</p>");
  44. }
  45. ?>
  46. </div>
  47.  
  48. <div id="footer">
  49. <footer>
  50. <p>
  51. Widzisz błąd na naszej stronie? Skontakuj sie z nami poprzez email <a href="mailto:randomowy@gmail.com">randomowyemail@gmail.com</a>
  52. </p>
  53. </footer>
  54. <details>
  55. <summary>Wszelkie prawa zastrzeżone</summary>
  56. <p> &copy; 2018 Jakub Urbanek &amp; Cezar Ciepielewski</p>
  57. </details>
  58. </div>
  59. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement