le formulaire
Code : Tout sélectionner
<form action="inscription.php" method="post" name="retour" id="retour">
<input name="reponse" type="hidden" id="reponse" value="<?php echo"$reponse"; ?>" />
<input name="reponse1" type="hidden" id="reponse1" value="<?php echo"$reponse1"; ?>" />
<input name="reponse2" type="hidden" id="reponse2" value="<?php echo"$reponse2"; ?>" />
<input name="mail" type="hidden" id="mail" value="<?php echo"$mail"; ?>" />
<input name="civil" type="hidden" id="civil" value="<?php echo"$civil"; ?>" />
<input name="nom" type="hidden" id="nom" value="<?php echo"$nom1"; ?>" />
<input name="prenom" type="hidden" id="prenom" value="<?php echo"$prenom"; ?>" />
<input name="adresse" type="hidden" id="adresse" value="<?php echo"$adresse"; ?>" />
<input name="cp" type="hidden" id="cp" value="<?php echo"$cp"; ?>" />
<input name="ville" type="hidden" id="ville" value="<?php echo"$ville"; ?>" />
<input name="pays" type="hidden" id="pays" value="<?php echo"$pays"; ?>" />
<input name="tel" type="hidden" id="tel" value="<?php echo"$tel"; ?>" />
<input name="submit" type="submit" value="réessayez" />
</form>
Code : Tout sélectionner
$reponse = htmlentities($_POST['reponse']);
$reponse1 = htmlentities($_POST['reponse1']);
$reponse2 = htmlentities($_POST['reponse2']);
$mail = htmlentities($_POST['mail']); //on attribut a des variable les champs rempli par les client
$civil = htmlentities($_POST['civil']);
$nom1 = htmlentities($_POST['nom']);
$prenom = htmlentities($_POST['prenom']);
$adresse = htmlentities($_POST['adresse']);
$cp = htmlentities($_POST['cp']);
$ville = htmlentities($_POST['ville']);
$pays = htmlentities($_POST['pays']);
$tel = htmlentities($_POST['tel']);
j'ai essayé de faire une recherche google et sur le forum mais n'ayant peut-être pas les bons termes pour cette recherhe je n'ai pas eu de resultat.
Merci pour votre aide.