WebbServerProg/www/public/Moment-1/kalkylator.php

20 lines
328 B
PHP
Raw Normal View History

2024-08-23 13:56:58 +00:00
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="utf-8">
<title>Kalkylator</title>
</head>
<body>
<h1>Kalkylator</h1>
<?php
$n1 = $_POST['n1'];
$n2 = $_POST['n2'];
$summa = $n1 + $n2;
echo "<p>Summan av ".$n1." och ".$n2." är ".$summa."</p>";
include("../footer.html");
?>
</body>
</html>