Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. if ((isset($_SESSION['zalogowany'])) && ($_SESSION['zalogowany']==true))
  6. {
  7. header('Location: logowanie.php');
  8. exit();
  9. }
  10.  
  11. ?>
  12.  
  13.  
  14.  
  15.  
  16. <!DOCTYPE html>
  17. <html>
  18. <head>
  19. <title>Strona</title>
  20. <meta charset="UTF-8">
  21.  
  22. <link rel="Stylesheet" href="styl.css" type="text/css">
  23.  
  24. </head>
  25. <body>
  26.  
  27.  
  28.  
  29. <h2>ZADANIE 7</h2>
  30.  
  31. <form action="logowanie.php" method="post">
  32. Podaj imię <input type="text" name="imie" /><br>
  33. Podaj nazwisko <input type="text" name="nazwisko" /><br>
  34. Wybierz wojewodztwo
  35. <select><br>
  36. <option value="podlaskie">podlaskie</option>
  37. <option value="pomorskie">pomorskie</option>
  38. <option value="opolskie">opolskie</option>
  39. </select>
  40. Podaj miasto<input type="text" name="miasto" /><br>
  41. Podaj kod pocztowy<input type="number" name="mias"/> - <input type="number" name="to" /><br>
  42. Podaj ulice<input type="text" name="ulica" /><br>
  43. Podaj adres email<input type="text" name="email" /><br>
  44. Wybierz zdjecie<input type="checkbox" name="ulica" /><br>
  45. <form action="logowanie.php">
  46. <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br>
  47. <input type="checkbox" name="vehicle" value="Car" checked> I have a car<br>
  48. <input type="submit" value="Wyslij">
  49. </form>
  50.  
  51. </form>
  52.  
  53.  
  54. <h2>ZADANIE 6</h2>
  55.  
  56. <form action="logowanie.php" method="post">
  57.  
  58. Login: <br /> <input type="text" name="login" /> <br />
  59. Hasło: <br /> <input type="password" name="haslo" /> <br /><br />
  60. <input type="submit" value="Wyslij" /><br />
  61. <input type="reset" value="Wyczysc" />
  62.  
  63.  
  64.  
  65. </form>
  66.  
  67.  
  68.  
  69. <div class="kalendarz">
  70. <div>Dzień : <input type="number" name="data" value="5" />
  71. <input type="button" name="button_z2" value="Sprawdź dzień"/> </div>
  72. </div>
  73. <?php
  74. $data=0;
  75. if ($a > $b)
  76. echo "a is bigger than b";
  77.  
  78.  
  79.  
  80.  
  81. ?>
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131. <?php
  132.  
  133. session_start();
  134.  
  135. if ((!isset($_POST['login'])) || (!isset($_POST['haslo'])))
  136. {
  137. header('Location: index.php');
  138. exit();
  139. }
  140.  
  141.  
  142.  
  143. ?>
  144.  
  145. <h1>Udalo sie!!!</h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement