-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.php
39 lines (35 loc) · 1.25 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
<?php
session_start();
require './PHP/CRUD/config.php';
$nav = 'contact';
if(isset($_SESSION['erreurContact'])){
$erreurcontact = $_SESSION['erreurContact'];
} else {
$_SESSION['erreurContact'] = '';
$erreurcontact = "";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./CSS/produit.css">
<link rel="stylesheet" href="/CSS/style.css">
<title>Contact</title>
</head>
<body>
<?php include './PHP/INCLUDES/menu.php'; ?>
<form class="mt-4 formulaireLogin" action="mail.php" method="post">
<input type="text" name="name" id="name" placeholder="votre nom" required>
<input type="text" name="prename" id="prename" placeholder="votre prénom" required>
<input type="email" name="mail" id="mail" placeholder="votre adresse mail" required>
<textarea type="text" name="message" id="message" placeholder="votre message" rows="5" required></textarea>
<div class="center">
<input class="btnSubmit" type="submit" value="Envoyer">
</div>
<?= $erreurcontact ?>
</form>
<?php include './PHP/INCLUDES/footer.php'; ?>
</body>
</html>