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