Bonjour,

comment est il possible d'afficher un tableau plutôt qu'un autre en fonction d'une partie d'un lien? (partie rouge)


Je n'arrive qu'à faire afficher le tableau else


Merci d'avance pour votre aide

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
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
 
<?php 
 
if (!empty($_GET['CC01']))
{
$CC01 = "<table border='0' align='center' width='100' height='175'><TR>";
$CC01 .= "<TD align='center'><a href='20g316/img_CC01_01.jpg' target=_blank><img src='20m317/img_CC01_01.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC01_01.jpg' checked='checked'></TD>";
$CC01 .= "<TD align='center'><a href='20g316/img_CC01_02.jpg' target=_blank><img src='20m317/img_CC01_02.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC01_02.jpg'></TD>";
$CC01 .= "<TD align='center'><a href='20g316/img_CC01_03.jpg' target=_blank><img src='20m317/img_CC01_03.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC01_03.jpg'></TD>";
$CC01 .= "</tr></table>";
echo $CC01; 
}
 
 
if (!empty($_GET['CC02']))
{
$CC02 = "<table border='0' align='center' width='100' height='175'><TR>";
$CC02 .= "<TD align='center'><a href='20g316/img_CC02_01.jpg' target=_blank><img src='20m317/img_CC02_01.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC02_01.jpg' checked='checked'></TD>";
$CC02 .= "<TD align='center'><a href='20g316/img_CC02_02.jpg' target=_blank><img src='20m317/img_CC02_02.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC02_02.jpg'></TD>";
$CC02 .= "<TD align='center'><a href='20g316/img_CC02_03.jpg' target=_blank><img src='20m317/img_CC02_03.jpg' width='100' height='100' border='3'></a><br><input type='radio' name='radiobutton1' value='img_CC02_03.jpg'></TD>";
$CC02 .= "</tr></table>";
echo $CC02; 
}
 
 
 
else
{
$tableau2 = "<table border='0' align='center' width='70%' height='100'><tr><td>";
$tableau2 .= "<p class='titre'>Choisissez à droite le thème de votre image";
$tableau2 .= "</tr></tr></table>";
echo ($tableau2); 
}
?>