-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
42 lines (35 loc) · 1.23 KB
/
contact.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Contact Form</title>
</head>
<body>
<?php
session_start();
$errors = $_SESSION['errors'] ?? [];
$old = $_SESSION['old'] ?? [];
session_unset();
?>
<form action="traitement.php" method="POST">
<label for="civilite">Civilité:</label>
<select name="civilite" id="civilite">
<option value="Mr">Mr</option>
<option value="Mme">Mme</option>
<option value="Mlle">Mlle</option>
</select><br><br>
<label for="nom">Nom:</label>
<input type="text" name="nom" id="nom"><br><br>
<label for="prenom">Prénom:</label>
<input type="text" name="prenom" id="prenom"><br><br>
<label for="email">Email:</label>
<input type="email" name="email" id="email"><br><br>
<label>Raison du contact:</label><br>
<input type="radio" name="raison" value="Questions"> Questions<br>
<input type="radio" name="raison" value="Autre"> Autre<br><br>
<label for="message">Message:</label><br>
<textarea name="message" id="message"></textarea><br><br>
<input type="submit" value="Envoyer">
</form>
</body>
</html>