Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <script>
  2. var w=prompt("podaj wiek xD");
  3. if (w<18)
  4. {
  5. document.write("WYPAD MAŁoLACIE XD");
  6. }
  7. else
  8. {
  9. document.write("Wiek wynosi " +w+ " lat");
  10. }
  11. </script>
  12. <html>
  13. <head>
  14. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  15. </head>
  16. <body>
  17.  
  18. <form>
  19.  
  20. <h1>Podaj imię:</h1>
  21. <input type="text" name="imie: " placeholder="imię" /><br /><br />
  22.  
  23. <h1>Podaj nazwisko:</h1>
  24. <input type="text" name="nazwisko: " placeholder="nazwisko" /><br /><br />
  25.  
  26. </form>
  27.  
  28. <h1>Wiek:</h1>
  29. <script>
  30. var w=prompt("podaj wiek xD");
  31. if (w<18)
  32. {
  33. document.write("Jesteś za młody by wysłać formularz gnoju niedorostku");
  34. }
  35. else
  36. {
  37. document.write("Wiek wynosi " +w+ " lat masz uprawnienia by wysłać formularz");
  38. }
  39. </script>
  40. <p><form action ="mailto:adam@2wp.pl method="POST" entype="text/plain">
  41. <input type="submit" value="Wyślij" />
  42. </form>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement