Bonjour,

J'ai un souci dans un script content un switch. Voici le code :

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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
<?php
switch($_GET['page'])
{
case 'news':
echo ' ';
break;
 
case 'articles_index' || 'articles' || 'articles_xp' || 'articles_vista' || 'articles_7' || 'articles_office' || 'articles_dev':
echo ('<div id="menu_articles_content">
		<!-- Contenu du Menu -->
		<!-- Articles --><a href="index2.php?page=articles_index"><img src="Images/ArticlesTag.png" alt="Articles"/></a>
		<b>
		<ul>
			<li><a href="index2.php?page=articles_xp">Microsoft Windows XP</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=articles_vista">Microsoft Windows Vista</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=articles_7">Microsoft Windows 7</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=articles_office">Microsoft Office</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=articles_dev">Web Developement</a></li>
		</ul>
		</b>
	  </div>');
break;
 
case 'tutoriaux_index' || 'tutoriaux' || 'tutoriaux_xp' || 'tutoriaux_vista' || 'tutoriaux_7' || 'tutoriaux_office' || 'tutoriaux_dev':
echo ('<div id="menu_tutoriaux_content">
		<!-- Contenu du Menu -->
		<!-- Tutoriaux --><a href="index2.php?page=tutoriaux_index"><img src="Images/TutoriauxTag.png" alt="Tutoriaux"/></a>
		<b>
		<ul>
			<li><a href="index2.php?page=tutoriaux_xp">Microsoft Windows XP</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=tutoriaux_vista">Microsoft Windows Vista</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=tutoriaux_7">Microsoft Windows 7</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=tutoriaux_office">Microsoft Office</a></li><br />
			<!--[if IE]>
				<br />
			<![endif]-->
			<li><a href="index2.php?page=tutoriaux_dev">Web Developement</a></li>
		</ul>
		</b>
	  </div>');
break;
 
default:
echo ' ';
break;
?>
Le premier et le deuxième case fonctionnent bien, ce qui n'est pas le cas du troisième. Je ne vois pas du tout d'où peut venir ce problème. Par contre si je met le troisième case en premier, là encore seul le premier et le deuxième case marche (c'est-à-dire le troisième case que j'ai mis au début + le case 'news').

Si quelqu'un peut m'aider.

Merci

Srini