Källkodsbrowser

mottagning.php

30 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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>