Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <form action="cos.php" method="get">
- Imie: <input type="text" name="imie"><br>
- Nazwisko: <input type="text" name="nazwisko"><br>
- Wiek: <input type="text" name="wiek">
- <input type="submit">
- </form>
- </body>
- </html>
- <html>
- <body>
- Witaj
- <?php
- echo $_GET["imie"];
- echo " ";
- echo $_GET["nazwisko"];
- ?>
- , Jak się miewasz?<br>
- <?php
- if ($_GET["wiek"] < 18){echo "Niestety jesteś niepełnoletni :/";}
- else{echo "Jesteś pełnoletni";}
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement