-
Notifications
You must be signed in to change notification settings - Fork 3
/
contact.php
33 lines (32 loc) · 1.71 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
<?php
require('./src/inc/functions.php');
$title = 'Contact';
include('./src/template/header.php');
?>
<section id="contact">
<div class="container">
<div class="contact-container">
<form class="form-contact" action="./api/contact/add.php" method="post">
<div class="inputs-container">
<input type="mail" name="mail" placeholder="Votre mail" value="<?= (!empty($_SESSION['netron']['user']['mail'])) ? $_SESSION['netron']['user']['mail'] : '' ?>">
<input type="text" name="firstname" placeholder="Votre prénom" value="<?= (!empty($_SESSION['netron']['user']['firstname'])) ? $_SESSION['netron']['user']['firstname'] : '' ?>">
</div>
<div class="inputs-container">
<input type="text" name="lastname" placeholder="Votre nom" value="<?= (!empty($_SESSION['netron']['user']['lastname'])) ? $_SESSION['netron']['user']['lastname'] : '' ?>">
<input type="text" name="subject" placeholder="Votre motif">
</div>
<textarea name="message" placeholder="Votre message"></textarea>
<button type="submit" class="btn btn-blue-primary" role="btn-profile-save">Envoyer
<svg class="btn-arrow" width="10" height="10" viewBox="0 0 10 10" aria-hidden="true">
<g fill-rule="evenodd">
<path class="btn-arrow-line" d="M0 5h7"></path>
<path class="btn-arrow-tip" d="M1 1l4 4-4 4"></path>
</g>
</svg>
</button>
</form>
</div>
</div>
</section>
<?php
include('./src/template/footer.php');