PHP ver gevorderde |
|
<?php
switch($page) {
case "1":
include "main.htm" ;
break;
case "2":
include "adres.htm" ;
break;
case "3":
include "contact.htm " ;
break;
case "4":
include "akties.htm" ;
break;
case "5":
include "artikelen.htm" ;
break;
case "6":
include "schoeisel.htm" ;
break;
case "7":
include "horeca.htm" ;
break;
case "8":
include "snijmessen.htm" ;
break;
case "9":
include "darmen.htm" ;
break;
}
?>
<?php switch($page) { case "1": include "main.htm" ; break; case "2": include "adres.htm" ; break; case "3": include "contact.htm " ; break; case "4": include "akties.htm" ; break; case "5": include "artikelen.htm" ; break; case "6": include "schoeisel.htm" ; break; case "7": include "horeca.htm" ; break; case "8": include "snijmessen.htm" ; break; case "9": include "darmen.htm" ; break; } ?>
haal in jouw script als die spaties tussen de haakjes eens weg want include gaat beschouwt deze mee als naam van de pagina en kan dus de pagina niet weergeven
|