On tripod, i made a comment form using html, and i want it to display the comments on the website. But, i also need it to use a captcha so i dont get spammed. Does anyone know how i would go about doing that? I would greatly appreciate it. Thank you in advance!!
How do i display comments from my comment form in tripod?
When a comment is submitted, it needs to be stored in a database. Then you'd create a script to query the database for all comments, and display them.
The captcha would also utilize the database. Each captcha image would be stored in the database, along with the correct sequence of characters the user would need to type. Whenever the form is loaded, the script would randomly choose one captcha image and display it. When the form is submitted, the script would query the database for the correct sequence for that image. It would then compare the correct one with the user's input. If they match, the comment gets written to the database. If not, then it doesn't.
No comments:
Post a Comment