Corrigez-moi s'il vous plait ce code
Je veux d’afficher un formulaire qui contient des options (radio Botton) selon le contenu d’un champ sexe
Tous ça marche bien, j’ai le problème au niveau de teste IF
$req="select * from t_client where code='$code'";
$res=mysql_query($req,$cn);
$enrg=mysql_fetch_row($res);
echo"<form name='form1' method='post' action='modif_clt.php'>
<table width='480'>
<tr>
<th align='right' scope='row'>Adresse</th>
<td colspan='3'><input name='t_adresse' type='text' id='t_adresse' value='$enrg[4]'></td>
</tr
<tr>
<th align='right' scope='row'>Sexe</th>
<td width='63'>
if ($enrg[5]=='m')
<input type='radio' name='sexe' value='m' checked> M
else
<input type='radio' name='sexe' value='m' > M
</td>
<td width='57'>
if ($enrg[5]=='f')
<input type='radio' name='sexe' value='f' checked> F
else
<input type='radio' name='sexe' value='f' > F
</td>
</table>
</form>";
?>