Hi marc,
The array i posted before is the full array as it stands...
The content area of my page is loaded via content.php which contains...
So index.php?guides is simply the index for that section, index.php?guides=1 (or whatever case i assign in the above - 1 in my example) is where the tabs don't show active.
The array is simply what was posted per your previous advice (thanks), i've only learnt what an array is within the last few days and i'm still very limited in understanding, but it's simply...
nothing more...
If i could be doing this better another way please explain.... As long as i get the jist of what code is doing what i don't mind how it's done.
The array i posted before is the full array as it stands...
The content area of my page is loaded via content.php which contains...
PHP:
<?php
$project = $_GET['project'];
$guides = $_GET['guides'];
if (isset($project))
{
if ($project=="")
{
$project = include('projects/index.php');
}
else
switch($project)
{
case "1":
include('projects/1.php');
break;
case "2":
include('projects/2.php');
break;
}
unset($project);
}
elseif (isset($guides)) {
if ($guides=="")
{
$guides = include('guides/index.php');
}
else
switch($guides)
{
case "1":
include('guides/1.php');
break;
case "2":
include('guides/2.php');
break;
}
unset($guides);
}
else
{
include('main.php');
}
?>
The array is simply what was posted per your previous advice (thanks), i've only learnt what an array is within the last few days and i'm still very limited in understanding, but it's simply...
PHP:
$mylinks = array(
'Home' => "/index.php",
'Projects' => '/index.php?project',
'Guides' => '/index.php?guides',
'Other' => '/index.php?other');
If i could be doing this better another way please explain.... As long as i get the jist of what code is doing what i don't mind how it's done.