Jump to content

link seperate .php files


clown[NOR]

Recommended Posts

Hi again ppl!

 

Well, I'm back with another question.. I've always been wondering how to do this.. ok.. let's start..

 

Let's say the dir tree looks like this

ROOT

|-index.php

|-about.php

|-products.php

 

now i've seen on some websites they use the filename as link..

<a href="about.php">Link here</a>

 

and when you click that link the about.php appears, but it still looks like the first page, only change is the content.

 

so my question here is.. is everything in index.php & about.php identical except the info content  that changes from news to about?

 

or is there away to include it anyway?

 

wow I suck at explaining.. anyone who understands what I'm talking about?

Link to comment
https://forums.phpfreaks.com/topic/46221-link-seperate-php-files/
Share on other sites

let's use thisone as an example then =) sorry.. i'm norwegian so my english vocabulary is kidna limited and therefore it's kind of an challenge for me to explain =) hehe...

 

http://www.evcircuit.com/index.php

 

but look at the links on this site... do you think they have created that layout in all the .php files, or just index and then use some kind of including method somewhere? hehe.. here i go again..trying to explain  ;D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.