NogDog;10999836 wrote: Assuming it is in $_GET, you could then just check if that element isset() and equals 'kontakt'.
Hi and thanks for the reply.
I will give you an insight to my structure of index.php so that you can advise me more.
//index.php
<?
$page = isset($_GET['p']) ? $_GET['p'] : 'home';
switch($page) {
/*----------------------- PAGES -----------------------------------*/
case 'kontact':
$title = 'Kontact';
$keyword = 'My keywords';
$description = 'Contact page';
break;
default:
$title = 'home';
$keyword = 'My keywords';
$description = 'home page';
break;
}
include('include/header.php');
include(''.$page.'.php');
include('include/footer.php');
So for example the following js files need to be included in kontact:
<script src="<? echo $url; ?>/js/jquery.easing.1.3.js"></script>
<script src="<? echo $url; ?>/js/jquery-1.6.4.js" ></script>
<script src="<? echo $url; ?>/js/jquery.cycle.all.js"></script>
and the following for home only:
<script type="text/javascript" src="<? echo $url; ?>/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<? echo $url; ?>/js/jquery.jcarousel.js"></script>
<script type="text/javascript" src="<? echo $url; ?>/js/jquery-func.js"></script>
Could you point me in the right direction?