m1/www/public/upp1/dollar.php

18 lines
259 B
PHP
Raw Permalink Normal View History

2024-09-03 12:50:13 +00:00
<!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>