ce code qui n'as voulu fonctionner.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<script type="text/javascript">var NREUMQ=NREUMQ||[];NREUMQ.push(["mark","firstbyte",new Date().getTime()]);</script>
<title>Formulaires</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body>
<p> C'est une page de test</p><br/>
<?php
if(!isset($_POST['pseudo']) OR $_POST['pseud'] != "kangarou")
{
<form method="POST" action="testformulaire.php">
<input type="text" name="nom" value="entrer ton nom"/>
<input type="submit" value="valider"/><br/>
<textarea name="commentaire" rows="20" cols="20">
tu peux commenter nos produits
</textarea><br/>
<select name="liste">
<option value="MAROC" >MAROC</option>
<option value="france" selected="selected">FRANCE</option>
<option value="BRESIL">BRESIL</option>
<option value="ALMAGNE">ALMAGNE</option>
</select>
</p>
<input type="checkbox" name="check1" id="1" ><label for="1" /> TANGER </label><br/>
<input type="checkbox" name="check2" id="2" ><label for="2" /> RABAT </label><br/>
<input type="checkbox" name="check2" id="3" ><label for="3" /> AGADIR </label><br/>
VOUS AIMEZ LE MAROC?
<label for="pas">LE MOT DE PASSE</label><input type="password" name="pseud" id="pas"/>
</form>
</body>
</html>
} ?>
else
{
<p>Bonjour</p><br/>
<p>Je sais que ton nom est:<?php echo $_POST['nom']; ?> et que ton mot de passe est: <?php echo $_POST['pseudo']; ?> </p>
<p>c'est toi qui a ecrit ce commentaire " <?php echo $_POST['commentaire'];?></p>
<p>Pour revenir a la page d'aceuil taper sur <a href="testformulaire.php"> ce lien </a></p>
<p>J'ai compris que tu as choisi comme pays de residence le/la: <?php $x=$_POST ['liste']; echo $x; ?></p>
<?php
if(isset($_POST['check1']) and $_POST['check1']==1)
{ echo "t\'as choisi comme ville: TANGER"; }
else { echo "t'as pas choisi TANGER COMME VILLE";} ?>
}
merci d'avance