nah, sorry, my first post seems a bit drunken! LOL.
http://www.welian.co.uk is my site. Basically I have links at the top, as you can see, which php link to the main site. They are working using the include tag in php. However, when directing to my site, I wanted a default to appear, otherwise the area stays blank until you click a link at the top. This, obviously is no good.
Basically, my question:
Does anyone know how to have a php include as a defeault? So that when someone directs to my site the WHOLE page is there not just the menu with a blank area until someone clicks a link.
At the moment, i'm adopting a stupid way of declaring each one:
<?
switch ($page) {
case "home":
include('main.html');
break;
case "news":
include('news.html');
break;
case "howto":
include('howto.html');
break;
case "preview":
include('previews.html');
break;
case "reviews":
include('reviews.html');
break;
case "merch":
include('merch.html');
break;
case "contact":
include('contact.html');
break;
case "about":
include('about.html');
break;
case "glossary":
include('glossary.html');
break;
default:
include('main.html');
}
?>
Obviously this is silly because i'll have to declare a case for every page I make!