All those PHP scripts that you saw and said were useless are completely necessary. You ABSOLUTELY need a server-side script and RDBMS (database) in order to create such functionality. You can save the comments into an .xml file, but I would suggest a database. Google will be your best friend when seaching for such scripts. Since there are millions of them out there, there is no need for me to post one here.
?
2013-10-26 23:09:22 UTC
retret
?
2010-11-12 03:31:16 UTC
In HTML, it's a simple
Jim
2010-11-12 03:30:20 UTC
you should be coding your comment form processing in PHP or asp.net or jsp or cold fusion (or the whole thing).
I have noticed some things.
- if you put a captcha on your comment form, people will fill it with junk, just because the captcha is there. I guess they like the challenge? yuck.
- if you put no captcha on the page, people will spam you.
- if you use a comment form, make sure you put a bad words filter on it. email me and I can supply you with a list of regular expressions I use (shudder) on my mother's blog to prevent junk. with wordpress, there is a plugin called tantannoodles spam filter which removes a percentage of the spam. I am thinking of implementing this spam filter on my site as a matter of fact now that I think about it, because I am always getting SEO offers I can't afford.
so either way you don't win, but it is possible to win against spammers.
?
2010-11-12 03:18:52 UTC
Really depends what functionality it needs to have. You can create the element simply enough on the page:
But you'll need some background script to do something with it, e.g add the comment to a database that can be access to display all the comments. Do some research and be careful how you let people add information to your site.