Jump to content

How link button & header page with index page in HTML


Tauheed
 Share

Recommended Posts

Dear Experts, i have crated my personal page, whenever i need to change in header, buttons and etc, where i will change in each page, now i would like to separate button page, header & footer page, so friends how i can link these pages to my index and other pages.

Link to comment
Share on other sites

You'll need a server-side language like PHP to include the header and buttons files into each page.

Is it not possible in HTML?? actually i have better know in HTML than PHP. if it is possible to make every page separate then joint it. I mean button page, header, footer, ad etc....... I will be thankful for your kind reply.

Link to comment
Share on other sites

If your only purpose is to implement a "header"-file in multiple pages, I would suggest you to read:

 

  1. http://www.php.net/manual/en/language.basic-syntax.phptags.php
  2. http://il1.php.net/manual/en/function.include.php

All you need to know:

  • your server have to support PHP!
  • In each page you choose to use php-script, you have to save the file as ".php"

All you need to do:

open php-script tag, add the include statement, close your php-script tag.

3 lined of simple code and you're done.

 

No need to cover all the php documentation, for just "including" a single file in few pages.

Edited by Yolo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...