Posted by macca on 03/05/07 21:50
Creating scripts where users can post comments can be done without the
use of a database.
In the old days (and still now) some websites use a common text file
to store the information to display instead of a database.
Using PHP you could create a .txt file and post the comment in you
form to s small script that would write the infomation to the file.
something like:-
$comment = $_POST['comment'];
$tp = fopen("prepared_comment_file.txt", "a");
fwrite($tp, $comment);
fwrite($tp, "\r\n");
fclose($tp);
This would write the comment to yout text file.
Then if you used some more PHP to display the contents of the text
file on the page you are sorted.
Good luck!
PM
Navigation:
[Reply to this message]
|