Bonjour
voila mon problème j'ai fait en html un formulaire d'inscription, sa marche bien pour le mon , prénom etc...
mais je ne sais pas comment récupéré les choix de distance
et je souhaite lors de la validation faire un renvoie sur ma page de remerciement
merci d'avance
code html<td align="right" width="120"><b>Distance
vtt </b></td>
<td width="100"><input name="DISTANCE" id="DISTANCE7" value="7" type="radio"><label for="DISTANCE7"> 7 kms</label></td>
<td width="100"><input name="DISTANCE" id="DISTANCE12" value="12" type="radio"><label for="DISTANCE12"> 12 kms</label></td>
<td width="100"><input name="DISTANCE" id="DISTANCE25" value="25" type="radio"><label for="DISTANCE25"> 25 kms</label></td>
<td width="100"><input name="DISTANCE" id="DISTANCE42" value="42" type="radio"><label for="DISTANCE42"> 42 kms</label></td>
</tr>
code PHP<?php
//Pour définir chaque input du formulaire, ajouter le signe de dollar devant
$msg .= "Nom:\t$nom\n";
$msg .= "Prenom:\t$prenom\n";
$msg .= "Adresse:\t$adresse1\n";
$msg .= "Adresse:\t$adresse2\n";
$msg .= "Code postal:\t$codepostal\n";
$msg .= "Ville:\t$ville\n";
$msg .= "Telephome:\t$telephome\n";
$msg .= "Email:\t$email\n";
$msg .= "Distance:\t$DISTANCE7\n";
$msg .= "Ville:\t$ville\n";
$msg .= "Pays:\t$pays\n\n";
$msg .= "Adresse:\t$adresse\n";
$recipient = "foyerrural@echallon-vtt.fr";
$subject = "Formulaire";
$mailheaders = "From: Mon test de formulaire<> \n";
$mailheaders .= "Reply-To: $email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD>";
echo "<TITLE>Formulaire envoyer!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Merci, $nom </H1>";
echo "<P align=center>";
echo "<votre enregistrement est prit en compte</P>";
echo "</BODY></HTML>";
?>