-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
127 lines (115 loc) · 5.34 KB
/
contact.php
File metadata and controls
127 lines (115 loc) · 5.34 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
session_start();
include_once ('login.php');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>API Index</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href='https://fonts.googleapis.com/css?family=Merriweather+Sans:700,300italic,400italic,700italic,300,400' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Russo+One' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" id="theme-style" href="css/about.css">
<link rel="stylesheet" href="css/sidebar.css">
<link rel="stylesheet" href="css/contact.css">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="index.php">Accueil</a></li>
<li><a href="about.html">About</a></li>
<?php
if(estConnecte()){
echo '<li><a href="profil.php">Mon profil</a></li>';
}
else{
echo '<li><a href="connexion.php">Connexion</a></li>';
}
?>
<li><a href="#">FAQ</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
</div>
</nav>
<header class="header-wrapper header-wrapper-contact">
<section class="promo section">
<div class="container text-center">
<h2 class="title">Contact me</h2>
<p class="intro">Si vous avez une remarque à faire ou avez une question à me poser, vous êtes au bon endroit !</p>
</div>
</section>
</header>
</div>
<div class="row">
<div class='col-sm-10 col-sm-offset-1'>
</div>
</div>
<div class='row'>
<div class='col-sm-10 col-sm-offset-1'>
<div class='well'>
<form method="get" action="postForm.php">
<div class='row'>
<div class='col-sm-4'>
<div class='form-group'>
<label for='fname'>Prenom</label>
<input type='text' name='prenom' class='form-control' />
</div>
<div class='form-group'>
<label for='lname'>Nom</label>
<input type='text' name='nom' class='form-control' />
</div>
<div class='form-group'>
<label for='email'>Email</label>
<input type='text' name='email' class='form-control' />
</div>
<div class='form-group'>
<label for='subject'>Catégorie</label>
<select name='sujet_1' class='form-control'>
<option>Questions me concernant</option>
<option>Suggestion sur le site</option>
<option>Autre question</option>
</select>
</div>
</div>
<div class='col-sm-8'>
<div class="form-group">
<label for="subject">Sujet</label>
<input type="text" name="sujet_2" class="form-control" />
</div>
<div class='form-group'>
<label for='message'>Message</label>
<textarea class='form-control' name='message' rows='10'></textarea>
</div>
<div class='text-right'>
<input type='submit' class='btn btn-primary' value='Envoyer' />
</div>
</div>
<?php
if(isset($_GET['success'])){
echo "<div class=\"alert alert-success\">
<strong>Success!</strong> Votre email a bien été envoyé !
</div>";
}
else if(isset($_GET['error'])){
echo "<div class=\"alert alert-danger\">
<strong>Error!</strong> Votre email n'a pas été envoyé !
</div>";
}
?>
</div>
</form>
</div>
</div>
</div>
</div>
</body>
</html>