Hi, I'm trying to create an administrator page on which my client can log in and type a brief message.
Old messages do not need to be preserved, so I was thinking that I could just use a form to submit the information, then the action is a php script that opens a textfile (announcement.inc) and overwrites the old content with whatever she is posting.
Then, on the regular webpage (not the admin access that my client uses), I will just have a require() construct that pulls in announcements.inc.
I got all this to work, but there has been a serious (though simple) problem:
The line breaks aren't preserved. Is there a simple way to preserve this formatting? If I can just get line breaks, I'm OK, so bold and italics are not necessary. I don't want to add on a Rich Text editor like FCKedit, which I looked at earlier. It's just overkill.
Thanks!
Chris
PS: I can use a database, but I didn't think it was necessary. I someone has an easy way to do this with a (MySQL) database, then I'd like to see that too becuase it would certainly be a good thing to learn.