m1/www/public/upp1/dollar.php
2024-09-03 14:50:13 +02:00

18 lines
259 B
PHP

<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="utf-8">
<title>Valuta</title>
</head>
<body>
<h1>Valutan i kronor</h1>
<?php
$dollar = $_POST['c'];
$sek = $dollar * 9.7;
echo "<p>$dollar $ = $sek kr</p>";
?>
</body>
</html>