Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if ((isset($_SESSION['zalogowany'])) && ($_SESSION['zalogowany']==true))
- {
- header('Location: logowanie.php');
- exit();
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Strona</title>
- <meta charset="UTF-8">
- <link rel="Stylesheet" href="styl.css" type="text/css">
- </head>
- <body>
- <h2>ZADANIE 7</h2>
- <form action="logowanie.php" method="post">
- Podaj imię <input type="text" name="imie" /><br>
- Podaj nazwisko <input type="text" name="nazwisko" /><br>
- Wybierz wojewodztwo
- <select><br>
- <option value="podlaskie">podlaskie</option>
- <option value="pomorskie">pomorskie</option>
- <option value="opolskie">opolskie</option>
- </select>
- Podaj miasto<input type="text" name="miasto" /><br>
- Podaj kod pocztowy<input type="number" name="mias"/> - <input type="number" name="to" /><br>
- Podaj ulice<input type="text" name="ulica" /><br>
- Podaj adres email<input type="text" name="email" /><br>
- Wybierz zdjecie<input type="checkbox" name="ulica" /><br>
- <form action="logowanie.php">
- <input type="checkbox" name="vehicle" value="Bike"> I have a bike<br>
- <input type="checkbox" name="vehicle" value="Car" checked> I have a car<br>
- <input type="submit" value="Wyslij">
- </form>
- </form>
- <h2>ZADANIE 6</h2>
- <form action="logowanie.php" method="post">
- Login: <br /> <input type="text" name="login" /> <br />
- Hasło: <br /> <input type="password" name="haslo" /> <br /><br />
- <input type="submit" value="Wyslij" /><br />
- <input type="reset" value="Wyczysc" />
- </form>
- <div class="kalendarz">
- <div>Dzień : <input type="number" name="data" value="5" />
- <input type="button" name="button_z2" value="Sprawdź dzień"/> </div>
- </div>
- <?php
- $data=0;
- if ($a > $b)
- echo "a is bigger than b";
- ?>
- <?php
- session_start();
- if ((!isset($_POST['login'])) || (!isset($_POST['haslo'])))
- {
- header('Location: index.php');
- exit();
- }
- ?>
- <h1>Udalo sie!!!</h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement