Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- contents of .txt file to table cell?
April 11, 2005, 7:57 pm
rate this thread
A table has been created which is divided into 6 cells. Each cell will be a
single noticeboard area with a quick explaination and a link to a document
letter, memo etc.... Currently I trudge through the mass code and change
the contents of these six boxes when new items want to be put on the board.
Is there anyway I can get each cell to display the contents of a single text
file? My idea is that I have 6 text files named 1.txt , 2.txt , 3.txt
etc.... that other none HTML people can just edit and save and therefore
update the contents of the noticeboard without me needing to do anything?
If so how can I do it?
Re: contents of .txt file to table cell?
Depends on what server-side scripting capabilities your server has.
Here's an example using PHP:
<td><? include "1.txt" ?></td>
<td><? include "2.txt" ?></td>
<td><? include "3.txt" ?></td>
<td><? include "4.txt" ?></td>
<td><? include "5.txt" ?></td>
<td><? include "6.txt" ?></td>
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact