0

Is there an "simple" way to have a Rich-text <textarea> form save to a specific file on my server, replacing or adding to the existing version of that file? The reason I ask is a person I'm designing for doesn't knwo a lick of HTML, nor has any wish to, just wants to type what he wants it to say from day to day and be updated in his site upon submitting the changes. I'm using PHP to pull from the specified file so that the formating won't get all wonky with each end-user change, but I can't seem to get the form to submit to a file let alone one on my server. Research so far has lead me to needing a Perl CGI script, but so far, i can't find anything down that road...

If anyone has a suggestion, or even a recommended piece of code, well that would be awesome! Thanks.

Edited by nathanward01: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by emhmk1
0

Is there an "simple" way to have a Rich-text <textarea> form save to a specific file on my server, replacing or adding to the existing version of that file? The reason I ask is a person I'm designing for doesn't knwo a lick of HTML, nor has any wish to, just wants to type what he wants it to say from day to day and be updated in his site upon submitting the changes. I'm using PHP to pull from the specified file so that the formating won't get all wonky with each end-user change, but I can't seem to get the form to submit to a file let alone one on my server. Research so far has lead me to needing a Perl CGI script, but so far, i can't find anything down that road...

If anyone has a suggestion, or even a recommended piece of code, well that would be awesome! Thanks.

You could store the textarea into a database and pull the most updated row from there and display that.

or you could use the php fopen() function more on that here
http://php.net/manual/en/function.fopen.php


Hope it helps..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.