|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
<body>
|
|
|
|
|
<form method="POST">
|
|
|
|
|
<div>
|
|
|
|
|
<label for="nom">nom</label>
|
|
|
|
|
<label for="nom" class="field_label">nom</label>
|
|
|
|
|
<input type="text" name="nom" id="nom" placeholder="nom" required/>';
|
|
|
|
|
if (isset($_POST['nom']) && empty($_POST['nom']))
|
|
|
|
|
{
|
|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
}
|
|
|
|
|
echo '</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="mail">email</label>
|
|
|
|
|
<label for="mail" class="field_label">email</label>
|
|
|
|
|
<input type="email" nom="mail" id="mail" placeholder="youremail@example.com" required/>
|
|
|
|
|
</div>';
|
|
|
|
|
if (isset($_POST['mail']) && empty($_POST['mail']))
|
|
|
|
@ -50,7 +50,7 @@
|
|
|
|
|
echo '<p class="error">Votre email est invalide !</p>';
|
|
|
|
|
}
|
|
|
|
|
echo '<div>
|
|
|
|
|
<label for="phone">numéro de téléphone</label>
|
|
|
|
|
<label for="phone" class="field_label">numéro de téléphone</label>
|
|
|
|
|
<input type="tel" name="phone" id="phone" placeholder="01 23 45 67 89"/>
|
|
|
|
|
</div>';
|
|
|
|
|
if (isset($_POST['phone']) && !empty($_POST['phone']) && !($_POST['phone'] == filter_var($_POST['phone'], FILTER_SANITIZE_NUMBER_INT)))
|
|
|
|
@ -58,7 +58,7 @@
|
|
|
|
|
echo '<p class="error">Entrez une numéro de téléphone correct</p>';
|
|
|
|
|
}
|
|
|
|
|
echo '<div>
|
|
|
|
|
<label for="motif">motif de contact</label>
|
|
|
|
|
<label for="motif" class="field_label">motif de contact</label>
|
|
|
|
|
<select name="motif" id="motif">
|
|
|
|
|
<option value="connaissance">Faire connaissance</option>
|
|
|
|
|
<option value="recrutement">Me recruter</option>
|
|
|
|
@ -66,7 +66,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="when">Quand voulez-vous me rencontrer ?</label>
|
|
|
|
|
<label for="when" class="field_label">Quand voulez-vous me rencontrer ?</label>
|
|
|
|
|
<input type="datetime-local" name="when" id="when">
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
@ -77,7 +77,7 @@
|
|
|
|
|
<label for="n">Non</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="msg">Votre message</msg>
|
|
|
|
|
<label for="msg" class="field_label">Votre message</msg>
|
|
|
|
|
<input type="textarea" name="msg" id="msg" placeholder="Votre message" required/>
|
|
|
|
|
</div>';
|
|
|
|
|
if (isset($_POST['msg']) && empty($_POST['msg']))
|
|
|
|
|