Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function olvas ()
- { echo'<form name="urlap" action=" " method="post">';
- echo'a=<input name="szam1" type="number"><br>';
- echo'<br>';
- echo'b=<input name="szam2" type="number"><br>';
- echo'<br>';
- echo'<input name="gomb" type="submit" value="Mehet">';
- echo'</form>';
- $a= $_POST["szam1"];
- $b= $_POST["szam2"];
- $s= $a+$b;
- $e= $a-$b;
- $t= $a*$b;
- $d= $a/$b;
- $r= $a%$b;
- echo"a=$a<br>";
- echo"b=$b<br>";
- echo"osszeg=$s<br>";
- echo"kivonas=$e<br>";
- echo"szorzas=$t<br>";
- echo"osztas=$d<br>";
- echo"osztasi maradek=$r<br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement