Facebook
From Corrupt Coyote, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 214
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>2</title>
  5. </head>
  6. <body>
  7. <form action="new.php" method="post">
  8. <input type="text" name="a" placeholder="1. bok">
  9. <input type="text" name="b" placeholder="2. bok">
  10. <input type="text" name="c" placeholder="3. bok">
  11. <input type="text" name="h" placeholder="wysokosc">
  12.         <input type="submit" name="wynik"/>
  13. </form>
  14. </body>
  15. </html>
  16.  
  17. <?php
  18. $a=$_POST['a'];
  19. $b=$_POST['b'];
  20. $c=$_POST['c'];
  21. $h=$_POST['h'];
  22.  
  23. $x=$a+$b+$c;
  24. echo $x;
  25. echo '<br>';
  26. $y=$a*$h;
  27. $z=$y/2;
  28. echo $z;
  29. ?>