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

m03u01.php

55 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
<!DOCTYPE html>
<html lang="sv">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Anmäl dig</title>
    <link rel="stylesheet" href="style.css">
    <link rel="icon" href="../m02/Favicon-a.jpg" type="image/png">
</head>
<body>
<div class="container">
    <h1>Registrera dig</h1>
<!--    En form och action länk till Rsltat.php och method POST-->
    <form action="Rsltat.php" method="POST">
        <div class="form-group">
            <label for="firstname">Förnamn</label>
            <input type="text" id="firstname" name="firstname" required>
        </div>

        <div class="form-group">
            <label for="lastname">Efternamn</label>
            <input type="text" id="lastname" name="lastname" required>
        </div>

        <div class="form-group">
            <label for="birthdate">Födelsedatum</label>
            <input type="date" id="birthdate" name="birthdate" required>
        </div>

        <div class="form-group">
            <label for="email">E-post</label>
            <input type="email" id="email" name="email" placeholder="fri villigt">
        </div>

        <div class="form-group">
            <label for="password">Lösenord</label>
            <input type="password" id="password" name="password" required>
        </div>

        <div class="radio-group">
            <label><input type="radio" name="gender" value="Man" required> Man</label>
            <label><input type="radio" name="gender" value="Kvinna"> Kvinna</label>
            <label><input type="radio" name="gender" value="Annat"> Annat</label>
        </div>

        <div class="checkbox-group">
            <label><input type="checkbox" name="terms"> Jag accepterar användarvillkoren</label>
        </div>

        <button type="submit">Skicka</button>
    </form>
</div>
</body>
</html>