Posted on 1998-10-28
I would like a web page has two link - view and post.
Let say I have a file named message.txt.
If user pressed the "post" link, he can post a message by :
first, enter his name in a textfield.
second, enter a message in a textarea.
a button "ok" and a button "clear"
after he pressed "ok", the message will be saved into message.txt. when I save the message, it should not overwrite other message. So the new message will be saved at the top and the following message is old message. If
I have 10 user entered the message, then I have 10 messages in the message.txt.
if user pressed "view" link :
he can view all the messages, so the new message will be at the top, and followed bt old message.
if you think my idea is not good enough, you can give me
your idea. Also I am new to cgi, I would like a complete
code and detail like how to install the script.
Thank a lot.