Loading variables from external text

wxdqz

New Member
I have just started creating my website, which I intend to create a lot of pages for. I would like them all to have the same layout and information around the outside of the page and only change one particular table located in the main section of my site for each page.

I was wondering if I could use only one html page, but link external .txt files containing only the script for the main section into the correct place. This text file would have to contain html tags as well if possible.

I really need the script to allow me to load a .txt file as a variable. Is it something like "var test = loadvariables("text.txt")?

If this is possible, or if there is an even better way of doing this, could you please give me the appropriate lines of script so I can adapt them for my own use.
 
Back
Top