/
index.php
28 lines (28 loc) · 1022 Bytes
/
index.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
if(isset($_POST["submit"])){
mail("tutorialworktv@gmail.com", "Kontaktformular", 'Name: '.$_POST["name"].' Email: '.$_POST["email"].' Priorität: '.$_POST["priorität"].' Nachricht: '.$_POST["message"]);
?>
<h1 style="color: green;">Das Kontaktformular wurde abgesendet!</h1>
<?php
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name" required><br>
<input type="email" name="email" placeholder="Email" required><br>
<select name="priorität">
<option value="hoch">Hoch</option>
<option value="mittel">Mittel</option>
<option value="gering">Gering</option>
</select><br>
<textarea name="message" rows="8" cols="80" required></textarea><br>
<button type="submit" name="submit">Absenden</button>
</form>
</body>
</html>