Bonjour,

Est-il possible d'afficher les données provenant du formulaire, mais pas leur valeurs, voici un exemple de ce que je veux :
Formation : Littérature
Langages : XML, PHP

Merci beaucoup


Voici le fichier html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<FORM action="test2.php" method="POST">
<INPUT type="radio" name="formation" value="0"/>Littérature
<INPUT type="radio" name="formation" value="1"/>Anglais
<INPUT type="radio" name="formation" value="2"/>Francais
<INPUT type="radio" name="formation" value="3"/>Chinois
<p>
<INPUT type="checkbox" name="langages[]" value="0" />XML
<INPUT type="checkbox" name="langages[]" value="1" />PHP
<INPUT type="checkbox" name="langages[]" value="2" />Mysql
<INPUT type="checkbox" name="langages[]" value="3" />HTML
<p>
<INPUT type="submit" value="Envoyer" />
</FORM>
Voici le code du fichier php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
<?php
$formation=$_POST['formation'];
$langages=$_POST['langages'];
echo "<b>Formation : </b> ". $formation. "<br/>";
$lang=join(', ',$_POST['langages']);
echo "<b>Langages : </b> ". $lang. "<br/>";
?>
Voici le résultat des 2 fichiers au-dessus
Formation : 1
Langages : 1, 2