Tauheed 0 Posted March 19, 2014 Report Share Posted March 19, 2014 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. Quote Link to post Share on other sites
Ingolme 1,034 Posted March 19, 2014 Report Share Posted March 19, 2014 You'll need a server-side language like PHP to include the header and buttons files into each page. Quote Link to post Share on other sites
Tauheed 0 Posted March 20, 2014 Author Report Share Posted March 20, 2014 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. Quote Link to post Share on other sites
Ingolme 1,034 Posted March 20, 2014 Report Share Posted March 20, 2014 HTML on its own is very limited. The task you want to do is one that server-side languages are designed for. Quote Link to post Share on other sites
thescientist 231 Posted March 20, 2014 Report Share Posted March 20, 2014 Another option is to use a build tool like Grunt to do concatenation, but that is arguably a more difficult learning curve. Quote Link to post Share on other sites
Petrucho 2 Posted March 20, 2014 Report Share Posted March 20, 2014 (edited) If your only purpose is to implement a "header"-file in multiple pages, I would suggest you to read: http://www.php.net/manual/en/language.basic-syntax.phptags.php 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 March 20, 2014 by Yolo Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.