Advertisement
Guest User

łap karol here22222

a guest
Oct 16th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html>
  4. <head>
  5. <meta charset="UTF-8">
  6. <title></title>
  7. </head>
  8. <body>
  9. <?php
  10. echo '<h2>Dane odebrane z formularza:</h2>';
  11. if (isset($_GET['Nazwisko'])&&($_GET['Nazwisko']!=""))
  12. {
  13. $nazwisko = htmlspecialchars(trim($_GET['Nazwisko']));
  14. echo 'Nazwisko:'.$nazwisko.'<br />';
  15. }
  16. else
  17. {
  18. echo 'Nie wpisano nazwiska <br />';
  19. }
  20.  
  21. if (isset($_GET['Wiek'])&&($_GET['Wiek']!=""))
  22. {
  23. $wiek = htmlspecialchars(trim($_GET['Wiek']));
  24. echo 'Wiek:'.$wiek.'<br />';
  25. }
  26. else
  27. {
  28. echo 'Nie wpisano wieku <br />';
  29. }
  30.  
  31. if (isset($_GET['Panstwo'])&&($_GET['Panstwo']!=""))
  32. {
  33. $panstwo = htmlspecialchars(trim($_GET['Panstwo']));
  34. echo 'Panstwo:'.$panstwo.'<br />';
  35. }
  36.  
  37. if (isset($_GET['email'])&&($_GET['email']!=""))
  38. {
  39. $email = htmlspecialchars(trim($_GET['email']));
  40. echo 'email:'.$email.'<br />';
  41. }
  42.  
  43. $zaplata=$_REQUEST["tech"];
  44. echo "Wybrano kurs/y: ";
  45. for($i=0; $i<sizeof($zaplata); $i++)
  46. {
  47. echo ' '.$zaplata[$i].' ';
  48. }
  49. echo '<br />';
  50.  
  51.  
  52. if (isset($_GET['zaplata'])&&($_GET['zaplata']!=""))
  53. {
  54. $zaplata = htmlspecialchars(trim($_GET['zaplata']));
  55. echo 'zaplata:'.$zaplata.'<br />';
  56. }
  57.  
  58. print_r($_GET);
  59. var_dump($_GET);
  60.  
  61.  
  62.  
  63. ?>
  64. <a style='color: black;' href="Formularz.php" ><h3>Powrót do formularza</a></h3>
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement