Hey,
Basically... I like to use php linking.. Like... the whole...
index.php?load=home
Because I heard its the safest way of linking.. So I want to add it to my newest site.. But through flash.. Basically.. The flash files have got the links in them... So when you click it goes to the page.. Thats all sorted out for sure...
In the flash files its got for one of the links...
link.php?page=About
And my main page is index.php
On my index.php at the very top, just after <body> I'v got the following...
<?
include('link.php');
?>
And on my link.php iv got this in it...
<?php
$page = $_GET['id'];
switch($page){
case 'Home':
include("index.php");
break; //break in the script so you can start a new one
case 'About': //sets the name that will be shown in the address bar when you click the "Staff" link.
include("index-1.html"); //sets the staff page notice it is different than the case so people don't know your page
break; //breaks the script so you can start a new case
case 'Services':
include("index-2.html");
break;
case 'Solutions':
include("index-3.html");
break;
case 'Support':
include("index-4.html");
break;
case 'Contacts':
include("index-5.html");
break;
}
?>
So what I want to do... Is pretty much this:
Index.php runs,
click on link on head.swf,
head.swf opens link in the same page..
Just like the whole;
<a href="info.html">something</a>
But opens in a new page... (Can't remember the code)
If anyone can help me, that'd be grand!
Thanks in advance!
-Keanu