Visa Källkod

The following files exist in this folder. Click to view.

NamnTypStorlek
m03u01.phpPHP Fil1.8 KB
m03u02.phpPHP Fil1.3 KB
m03u03.phpPHP Fil2 KB
Rsltat.phpPHP Fil1.8 KB

Rsltat.php

59 lines ISO-8859-1 BOM Unix (LF) - Type: PHP Fil
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
$firstname 
= isset($_POST['firstname']) ? htmlspecialchars($_POST['firstname']) : '';
$lastname = isset($_POST['lastname']) ? htmlspecialchars($_POST['lastname']) : '';
$birthdate = isset($_POST['birthdate']) ? htmlspecialchars($_POST['birthdate']) : '';
$password = isset($_POST['password']) ? htmlspecialchars($_POST['password']) : '';
$gender = isset($_POST['gender']) ? htmlspecialchars($_POST['gender']) : '';
$terms = isset($_POST['terms']) ? 'Godkänt' 'Ej godkänt';
?>
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Anmälan mottagen</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
    <h1>Registrering mottagen</h1>

    <div class="info-group">
        <label>Förnamn:</label>
        <p><?php echo $firstname?></p>
    </div>
    <div class="info-group">
        <label>Efternamn:</label>
        <p><?php echo $lastname?></p>
    </div>
    <div class="info-group">
        <label>Födelsedatum:</label>
        <p><?php echo $birthdate?></p>
    </div>

    <?php
    $email 
= isset($_POST['email']) ? htmlspecialchars($_POST['email']) : '';
    
?>
    <div class="info-group">
        <label>E-post:</label>
        <p><?php echo $email?></p>
    </div>

    <div class="info-group">
        <label>Lösenord:</label>
        <p><?php echo str_repeat('*'strlen($password)); ?></p>
    </div>
    <div class="info-group">
        <label>Kön:</label>
        <p><?php echo $gender?></p>
    </div>
    <div class="info-group">
        <label>Användarvillkor:</label>
        <p><?php echo $terms?></p>
    </div>

    <a href="m03u01.php" class="back-button">Tillbaka till formuläret</a>
</div>
</body>
</html>