Voici le code que j'ai inséré dans ma page :
| CODE |
| <? if ($page=='1') {include('accueil.php');} elseif ($page=='2') {include('present.htm');} elseif ($page=='3') {include('produits.htm');} elseif ($page=='3a') {include('aida.htm');} elseif ($page=='4') {include('revendeur.htm');} elseif ($page=='5') {include('infos.htm');} elseif ($page=='6') {include('contact.htm');} elseif ($page=='7') {include('plan.htm');} else {include('accueil.php');} ?> |
et voici ce que j'obtient quand je demande un aperçu de ma page en local:
| CODE |
| Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 31 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 32 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 33 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 34 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 35 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 36 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 37 Notice: Undefined variable: page in e:\easyphp1-8\www\vulcain\vulcain.php on line 38 |
Je n'ai pas les connaissances suffisantes pour savoir de quoi ça provient. Avant tout fonctionnait pourtant. Est-ce que cela vient de mon code? (qui marche en ligne pourtant). A l'aide!!!