Advertisement
kikosiak

Untitled

Nov 24th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. <?php
  2.     $imie=$_POST['imie'];
  3.     $nazw=$_POST['nazw'];
  4.     $mail=$_POST['mail'];
  5.     $wiek=$_POST['wiek'];
  6.     $plec=$_POST['plec'];
  7.     $kolor=$_POST['kolor'];
  8.  
  9.     if($_POST){
  10.         if($_GET){
  11.             echo "<".$_GET['format'].">";
  12.         }
  13.         if($imie && $nazw && $mail && $wiek && $plec && $kolor){
  14.             echo 'Imie ' .$imie. '<br>';
  15.             echo 'Nazwisko ' .$nazw. '<br>';
  16.             echo 'Mail ' .$mail. '<br>';
  17.             echo 'Wiek ' .$wiek. '<br>';
  18.             echo 'Plec ' .$plec. '<br>';
  19.             echo 'Kolor ' .$kolor. '<br>';
  20.         }else{
  21.             echo 'Wypelnij formularz';
  22.         }
  23.         if($_GET) {
  24.             echo "</" .$_GET['format'].">";
  25.         }
  26.     }
  27. ?>
  28. <a href = "index.html"> Strona glowna </a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement