<?php
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$birthdate = $_POST['birthdate'];
$password = str_repeat("*", strlen($_POST['password'])); // maskerar lösenord
$gender = $_POST['gender'];
$terms = isset($_POST['terms']) ? "Ja" : "Nej";
?>
<!DOCTYPE html>
<html lang="sv">
<head>
<meta charset="UTF-8">
<title>Registrering mottagen</title>
</head>
<body>
<h2>Registrering mottagen</h2>
<p>Förnamn: <?php echo $firstname; ?></p>
<p>Efternamn: <?php echo $lastname; ?></p>
<p>Födelsedatum: <?php echo $birthdate; ?></p>
<p>Lösenord: <?php echo $password; ?></p>
<p>Kön: <?php echo $gender; ?></p>
<p>Godkänt villkor: <?php echo $terms; ?></p>
<a href="../../webserver.html">
<button>Tillbaka till Landningpage </button>
</a>
</body>
</html>