-
Notifications
You must be signed in to change notification settings - Fork 1
/
kontakt.php
75 lines (63 loc) · 2.25 KB
/
kontakt.php
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
<?php
$page = basename($_SERVER['PHP_SELF'], '.php');
include 'components/head.php';
include 'components/nav.php';
$errors = array();
//Checks if all fields are filled out and posts them
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if (!empty($_POST["name"])) {
$vorname = $_POST["name"];
}else{
$errors['nameError']="Name darf nicht leer sein!";
}
if (!empty($_POST["email"])) {
$email = $_POST["email"];
}else{
$errors['emailError']="E-Mail darf nicht leer sein!";
}
if (!empty($_POST["helfen"])) {
$email = $_POST["helfen"];
}else{
$errors['helfenError']="E-Mail darf nicht leer sein!";
}
}
?>
<!--Contact form-->
<div class="Form">
<div class="contact text-center">
<h1 class="kontaktieren">Kontaktieren Sie uns!</h1><br>
<div class="row">
<div class="col-lg-12">
<h5><input type="text" class="field field1" placeholder="Name" name="name" id="name required"></h5>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h5> <input type="email" class="field field2" placeholder="E-Mail-Adresse" name="email" id="email"></h5>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h5><input type="text" class="field field3" placeholder="Telefonnummer" name="telefonnummer" id="felefonnummer"></h5>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<h5><input type="text" class="field field4" placeholder="Buchungsnummer" name="buchungsnummer" id="buchungsnummer"></h5>
</div>
</div>
<br>
<div class="row">
<div class="col-lg-12">
<h5>Wie können wir Ihnen helfen?</h5>
<textarea name="messages" id="messages" cols="40" rows="5"></textarea>
</div>
<div class="col-lg-12">
<input type="submit" value="Absenden">
</div>
</div>
</div>
</div>
<?php
include 'components/footer.php';
?>