okej mate!
thanx for helping me out.
this is exactly what I want.
I have an indexfile "index.php" and there are all the includes.
I did my linking with a case/switch commands which as you say are maybe not necessery.
I can maybe do it with:
if(isset($_GET['id'] && $_GET['subid'])) {
$id = $_GET['id'];
$subid = $_GET['subid'];
That code I am not certain of, I know only the case / switch.
My index.php is devided into three sections.
One header that contains the <head></<head> and start the <body> tag.
My main section that includes different *.php files and then my footer that closes </body> and </html> tags.
So I made a index.php look like this:
<?php include('.include/headermain.php'); ?>
<?php
// main links
switch ($_GET['id']) {
case 'en_1':
include('.include/main.php');
break;
case 'en_2':
include('.include/contact.php');
break;
case 'en_3':
include('.include/skills.php');
break;
case 'en_4':
include('.include/about.php');
break;
case 'en_5':
include('.include/stats.php');
break;
// Mail link
case 'mail':
include('.include/sendeail.php');
break;
// End Mail link
default:
include('.include/main.php');
break;
}
// end main links
?>
<?php include('.include/footer.php'); ?>
These are of course the switch and case commands which as you say are not necessery.
In my header section I have links to the different includes like:
/index.php?id=en_1
/index.php?id=en_2
/index.php?id=en_3
/index.php?id=en_4
/index.php?id=en_5
You can see it here:
http://www.technoheart.com
Now my problem, which can be solved maybe in a different way
is that I want for example have a link on my http://www.technoheart.com/index.php?id=en_3 page which includes (.include/skills.php) file.
I want to have a link there to another page in my ".include" folder, let say htmlskills.php
I want it to be outputted as: http://www.technoheart.com/index.php?id=en_3&skills=1
id=en_3 goes for the case "en_3" in my index.php file and skills=1 is another switch.
The same goes fo example with the main.php file.
If I have a link there let say to a page in my ".include" folder wich is development.php I want it outputted as a http://www.technoheart.com/index.php?id=en_1&main=1
For example if I have diff. languages I can have a link that shows swedish language with http://www.technoheart.com/index.php?id=en_3&lang=se
Or with three variables http://www.technoheart.com/index.php?id=en_3&lang=se&skills=1
My problem is how can I make it work and build it further with diff variables to get an output like shown above (the different links)
So the summary is that I want from my main section files which are include files like main.php, skills.php, about.php have links and I want to have an output like i.e. www.mypage.com/index.php?id=en_3&skills=1&lang=se
I understand you can solve it with different methids, but I know the case/switch method and maybe thats to mch of code.
Sorry for bothering you again