Salut,
Je cherche à afficher un résultat différent suivant le radio button qui est coché. Pour l'instant sur ma 1ere page j'ai ce formulaire

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
<form name="form1" method="post" action="form.php" enctype="multipart/form-data">
<p>
<input type="radio" name="format" value="text" checked></p>
<p>
<input type="radio" name="format" value="photo"></p>
<p>
<input type="radio" name="format" value="video"></p>
 
<p><input type="submit" value="Vendre mon cheval sur Equirodi"></p>
et sur ma page form.php ce script

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
<?php
$format=$_POST['format'];
if(isset($_POST['format']) && ($_POST['format'] == 'text'));
{
echo '<h5>text</h5>';
}
if(isset($_POST['format']) && ($_POST['format'] == 'photo'));
{
echo '<h5>photo</h5>';
}
if(isset($_POST['format']) && ($_POST['format'] == 'video'));
{
echo '<h5>video</h5>';
}
?>
Je ne comprends pas pourquoi en resultat ca m'affiche toujours text, photo et video quelque soit le bouton coché dans le form.
Quelqu'un à une idée?
Merci
Dolf