no error in the code, but it doesn't give the right result
Posted: Mon Jul 11, 2005 10:34 am
Hi,
Below is my code; there is no error in the code, but it doesn't give the results i expected. Please what is going wrong in my code? How can i fix it? Thank you.
Below is my code; there is no error in the code, but it doesn't give the results i expected. Please what is going wrong in my code? How can i fix it? Thank you.
Code: Select all
<html>
<head>
</head>
<body>
<form method = POST action = "e;ageControleSexe.php"e;>
<?php
//initialisation des variables
//$_POSTї'nomHtml'] = $_POSTї'prenomHtml'] = $_POSTї'anneeHtml'] = $_POSTї'sexeHtml'] = '0';
?>
<table align = center border = 1 cellpadding = 0 cellspacing = 0>
<tr><td><table align = center><tr align = center><td colspan = 2><font size = 4><b>Programme identité</b></font></td></tr>
<tr><td colspan = 2><u><p>Identite</p></u></td></tr>
<tr><td>Nom:</td><td><input name = "e;nomHtml"e; size = 20 type = text></td></tr>
<tr><td>Prenom:</td><td><input name = "e;prenomHtml"e; size = 20 type = text></td></tr>
<tr><td>Sexe:</td><td>Masculin<input name = "e;sexeHtml"e; type = radio checked value = "e;m"e;>Feminin<input name = "e;sexeHtml"e; type = radio value = "e;f"e;></td></tr>
<tr><td colspan = 2><u><p>Date de naissance</p></u></td></tr>
<tr><td>Jour:</td><td><input name = "e;jourHtml"e; size = 20 type = text></td></tr>
<tr><td>Mois:</td><td><input name = "e;moisHtml"e; size = 20 type = text></td></tr>
<tr><td>Annee:</td><td><input name = "e;anneeHtml"e; size = 20 type = text></td></tr>
<tr><td><input name = "e;btonEnvoyer"e; type = submit value = "e;Envoyer"e;></td></tr>
<tr><td>
<?php
if (isset($_POSTї'sexeHtml']) == 'm')
echo 'Mr '.isset($_POSTї'nomHtml']).' '.isset($_POSTї'prenomHtml']).' vous avez '.(2005 - isset($_POSTї'anneeHtml']));
else
echo 'Mme '.isset($_POSTї'nomHtml']).' '.isset($_POSTї'prenomHtml']).' vous avez '.(2005 - isset($_POSTї'anneeHtml']));
?>
</td></tr>
</table>
</form>
</body>
</html>