-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormular.html
More file actions
135 lines (124 loc) · 4.34 KB
/
Copy pathFormular.html
File metadata and controls
135 lines (124 loc) · 4.34 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html lang="de" class="main-bg">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Formular</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<header>
<nav>
<ul>
<li><a href="index.html">Homepage</a></li>
<li><a href="uebermich.html">Über mich</a></li>
<li><strong>Formular</strong></li>
<li><a href="Bilder.html">Bilder</a></li>
<li><a href="Grids.html">Grids</a></li>
</ul>
</nav>
</header>
<main>
<h1>Formular</h1>
<p>
Hier ist ein Formular, das du ausfüllen kannst. Es ist wichtig, dass du
alle Pflichtfelder (*) ausfüllst.
</p>
<form action="https://gibm.becknet.ch/formular/formular.php" method="post">
<!-- Anrede -->
<div>
<label>Anrede *</label><br />
<input type="radio" id="Herr" name="Anrede" value="Herr" required />
<label for="Herr">Herr</label>
<input type="radio" id="Frau" name="Anrede" value="Frau" required />
<label for="Frau">Frau</label>
<input type="radio" id="Divers" name="Anrede" value="Divers" required />
<label for="Divers">Divers</label>
</div>
<!-- Beruf -->
<div>
<label for="Beruf">Beruf *</label><br />
<select id="Beruf" name="Beruf" class="Beruf" required>
<option value="">Bitte wählen</option>
<option value="HatJob">Hat einen Job</option>
<option value="Arbeitslos">Arbeitslos</option>
</select>
</div>
<!-- Vor- und Nachname -->
<div>
<label for="Vorname">Vorname *</label><br />
<input type="text" id="Vorname" name="Vorname" minlength="1" maxlength="100" required autofocus />
<br /><br />
<label for="Nachname">Nachname *</label><br />
<input type="text" id="Nachname" name="Nachname" minlength="1" maxlength="100" required />
</div>
<!-- Geburtsdatum -->
<div>
<label for="Geburtsdatum">Geburtsdatum *</label><br />
<input type="date" id="Geburtsdatum" name="Geburtsdatum" required />
</div>
<!-- Adresse -->
<div>
<label for="Strasse">Strasse *</label><br />
<input type="text" id="Strasse" name="Strasse" minlength="1" maxlength="100" required />
<br /><br />
<label for="PLZ">PLZ *</label><br />
<input type="text" id="PLZ" name="PLZ" maxlength="4" required />
<br />
<label for="Ort">Ort</label><br />
<input type="text" id="Ort" name="Ort" placeholder="Ist zurzeit nicht verfügbar" disabled />
</div>
<!-- Kontakt -->
<div>
<label for="Email">Email *</label><br />
<input
type="email"
id="Email"
name="Email"
minlength="1"
maxlength="100"
pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$"
placeholder="max.mustermann@example.de"
required
/>
<br /><br />
<label for="Passwort">Passwort *</label><br />
<input
type="password"
id="Passwort"
name="Passwort"
minlength="8"
maxlength="100"
autocomplete="off"
pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}"
title="Mindestens 8 Zeichen, 1 Zahl, 1 Großbuchstabe"
required
/>
</div>
<!-- Optionales Feld -->
<div>
<label for="Telefon">Telefon</label><br />
<input type="tel" id="Telefon" name="Telefon" minlength="1" maxlength="100" />
</div>
<!-- Nachricht -->
<div>
<label for="Nachricht">Nachricht *</label><br />
<textarea
id="Nachricht"
name="Nachricht"
rows="4"
cols="50"
minlength="1"
maxlength="1000"
required
></textarea>
</div>
<!-- Buttons -->
<div>
<input type="submit" id="Senden" name="Senden" value="Senden" />
<input type="reset" id="Loeschen" name="Loeschen" value="Löschen" />
</div>
</form>
</main>
</body>
</html>