Advertisement
Guest User

pow php

a guest
Nov 21st, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <Html>
  2. <head>
  3.  
  4. <meta charset="utf-8"/>
  5. <link rel="stylesheet" href="style.css">
  6.  
  7. </head>
  8. <body>
  9.  
  10. <?php
  11.  
  12. ?>
  13.  
  14. <div class="baner">
  15. <a href="index.html"> <img src="baner.jpg"/> </a>
  16. </div>
  17.  
  18. <div class="box">
  19. <div class="pot">
  20. <h1>Potęgowanie</h1>
  21.  
  22. <form method="post" action="pot.php">
  23. <input type="text" name="liczba1" />
  24. <input type="text" name="liczba2" />
  25. <input type="submit" name="licz" />
  26. </form>
  27.  
  28. </div>
  29. </div>
  30.  
  31. <?php
  32.  
  33. $liczba1 = $_POST['liczba1'];
  34. $liczba2 = $_POST['liczba2'];
  35.  
  36. $wynik = pow($liczba1,$liczba2);
  37. echo $wynik;
  38.  
  39. ?>
  40.  
  41.  
  42. </body>
  43. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement