I have the homepage and a few other pages that have a peice of code on them that needs to be changed a lot, how can I change these all at once without doing it manually. Ideally I'd like to have a seperate html file just for that peice of code that I can include into all of the pages. How can I do that?
Kinda like a PHP include, but with HTML?
Page 1 of 1
Include a piece of HTML code from a file into a page?
#4
Posted 09 January 2010 - 09:08 PM
I don't think you can do it with a page that has .html extension, but you can with .shtml extension or .php extension.
PHP is the best method, why not use that; (check that your host supports PHP).
SHTML and PHP examples:- http://www.wickham43...eincludes.shtml
PHP is the best method, why not use that; (check that your host supports PHP).
SHTML and PHP examples:- http://www.wickham43...eincludes.shtml
#5
Posted 09 January 2010 - 09:10 PM
Wickham, on 09 January 2010 - 09:08 PM, said:
I don't think you can do it with a page that has .html extension, but you can with .shtml extension or .php extension.
PHP is the best method, why not use that; (check that your host supports PHP).
SHTML and PHP examples:- http://www.wickham43...eincludes.shtml
PHP is the best method, why not use that; (check that your host supports PHP).
SHTML and PHP examples:- http://www.wickham43...eincludes.shtml
Ahh yes, I will do it with a PHP include, thankyou!
Share this topic:
Page 1 of 1
Help

















