View Single Post
Old 04-18-2004, 08:38 PM   #2 (permalink)
Emily
Monster Techie
 
Join Date: Jul 2003
Posts: 1,179
Send a message via AIM to Emily
Default

Put each page in a separate text file with just text and very basic HTML tags (like >p> or whatever you need. A sample page would look like this:

< P>This is some content< /P>

Save it as page1.txt. Then on your home page, when you want to link to the content in page1.txt, make the href="?page=page1":

< a href="?page=page1>Page 1< /a>

Then in the spot where you want the content to show up, put:

< ?php
if ($page) {
include("$page");
}
? >;

This is a very stupid way to explain this, but it's very useful. (Actually I'm not entirely show this is even the kind of thing you wanted.) Let me know if you want me to explain it more/better.

P.S. You're going to want to omit all the spaces from the tags all.
__________________
www.upstark.com
Emily is offline   Reply With Quote