Page 1 of 1

Newbie cant figure it out

Posted: Tue May 18, 2004 12:06 pm
by cochran242
I could use some help. I want to make a REALLY simple site. 3 pages. I have got the art all set, but I want the content to be read from .txt files (3 of them). I got it to display using :
<?php
include ("hometxt.txt");
?>

Now I want to be able to edit these three files from the website. First a dropdown to select which text to edit, then I want it to show a text box with the text in it, so I can edit it, then I can save it. I have looked at the "Flat-file" docs on the web but cant figure it out.

Please help. Thank you.
Casey

Posted: Tue May 18, 2004 12:11 pm
by feyd
I'd a combination of glob for populating the drop down; file() for getting the content of the file; standard html forms for editing the data; andfwrite() to save the file;