|
|
|
@ -31,15 +31,15 @@
|
|
|
|
|
<form method="POST">
|
|
|
|
|
<div>
|
|
|
|
|
<label for="nom">nom</label>
|
|
|
|
|
<input type="text" name="nom" placeholder="nom" required/>';
|
|
|
|
|
<input type="text" name="nom" id="nom" placeholder="nom" required/>';
|
|
|
|
|
if (isset($_POST['nom']) && empty($_POST['nom']))
|
|
|
|
|
{
|
|
|
|
|
echo '<p class="error">Veuillez renseigner votre nom !</p>';
|
|
|
|
|
}
|
|
|
|
|
echo '</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="email">email</label>
|
|
|
|
|
<input type="email" nom="mail" placeholder="youremail@example.com" required/>
|
|
|
|
|
<label for="mail">email</label>
|
|
|
|
|
<input type="email" nom="mail" id="mail" placeholder="youremail@example.com" required/>
|
|
|
|
|
</div>';
|
|
|
|
|
if (isset($_POST['mail']) && empty($_POST['mail']))
|
|
|
|
|
{
|
|
|
|
@ -51,7 +51,7 @@
|
|
|
|
|
}
|
|
|
|
|
echo '<div>
|
|
|
|
|
<label for="phone">numéro de téléphone</label>
|
|
|
|
|
<input type="tel" name="phone" placeholder="01 23 45 67 89"/>
|
|
|
|
|
<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)))
|
|
|
|
|
{
|
|
|
|
@ -59,26 +59,26 @@
|
|
|
|
|
}
|
|
|
|
|
echo '<div>
|
|
|
|
|
<label for="motif">motif de contact</label>
|
|
|
|
|
<select name="motif">
|
|
|
|
|
<select name="motif" id="motif">
|
|
|
|
|
<option value="connaissance">Faire connaissance</option>
|
|
|
|
|
<option value="recrutement">Me recruter</option>
|
|
|
|
|
<option value="notation">Me noter</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="when">Quand voulez-vous me rencontrer ?</label>
|
|
|
|
|
<label for="when" id="when">Quand voulez-vous me rencontrer ?</label>
|
|
|
|
|
<input type="datetime-local" name="when">
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<p>Est-ce votre première demande de rencontre ?</p>
|
|
|
|
|
<input name="1contact" type="radio" value="o"/>
|
|
|
|
|
<input name="1contact" type="radio" value="o" id="o"/>
|
|
|
|
|
<label for="o">Oui</label>
|
|
|
|
|
<input name="1contact" type="radio" value="n"/>
|
|
|
|
|
<input name="1contact" type="radio" value="n" id="n"/>
|
|
|
|
|
<label for="n">Non</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="msg">Votre message</msg>
|
|
|
|
|
<input type="textarea" name="msg" placeholder="Votre message" required/>
|
|
|
|
|
<input type="textarea" name="msg" id="msg" placeholder="Votre message" required/>
|
|
|
|
|
</div>';
|
|
|
|
|
if (isset($_POST['msg']) && empty($_POST['msg']))
|
|
|
|
|
{
|
|
|
|
|