<?php
if($type_1 == 'Type A')
{
echo"
<tr>
<td width='5'><br> <br></td>
<td width='200' height='30' class='separation_b'><form action='index.php?numlien=113' method='POST'><input size='20' type=submit value='Lien continuer'> </td>
<td align='left' height='30' class='separation_b'> <b>$type_1</b></form></td>
</tr>
";
}
elseif($type_2 == 'Type A')
{
echo"
<tr>
<td width='5'><br> <br></td>
<td width='200' height='30' class='separation_b'><form action='index.php?numlien=113' method='POST'><input size='20' type=submit value='Lien continuer'> </td>
<td align='left' height='30' class='separation_b'> <b>$type_2</b></form></td>
</tr>
";
}
elseif($type_3 == 'Type A')
{
echo"
<tr>
<td width='5'><br> <br></td>
<td width='200' height='30' class='separation_b'><form action='index.php?numlien=113' method='POST'><input size='20' type=submit value='Lien continuer'> </td>
<td align='left' height='30' class='separation_b'> <b>$type_3</b></form></td>
</tr>
";
}
elseif($type_4 == 'Type A')
{
echo"
<tr>
<td width='5'><br> <br></td>
<td width='200' height='30' class='separation_b'><form action='index.php?numlien=113' method='POST'><input size='20' type=submit value='Lien continuer'> </td>
<td align='left' height='30' class='separation_b'> <b>$type_4</b></form></td>
</tr>
";
}
elseif($type_5 == 'Type A')
{
echo"
<tr>
<td width='5'><br> <br></td>
<td width='200' height='30' class='separation_b'><form action='index.php?numlien=113' method='POST'><input size='20' type=submit value='Lien continuer'> </td>
<td align='left' height='30' class='separation_b'> <b>$type_5</b></form></td>
</tr>
";
}
else
{
echo"";
}
?>
En fonction du type le lien change.Y-a-t'il une façon de la simplifier ou peut-être de l'écrire autrement?
Merci d'avance pour votre aide.