Comment System With Captcha Using PHP

Language

In this program you will learn on how to create a comment system with captcha using PHP/MySQL. This comment system allows also to add sub comment. This system also uses captcha to prevent comments from spamming. It also gives an error message so that the user will be informed that the input captcha code is incorrect. database name: commentsystem

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted bySutt (not verified)on Fri, 11/09/2012 - 21:45

Name: ( ! ) Notice: Undefined index: id in C:\wamp\www\commentsys\captcha\index.php on line 162 Call Stack # Time Memory Function Location 1 0.0053 385048 {main}( ) ..\index.php:0 " />
Submitted byAnonymous (not verified)on Fri, 01/11/2013 - 17:54

Nice one.. Thank you !! @ANONYMOUS : I got the same error. I solved it by adding the following code just above the line where we use $_Get['id']
Submitted byAnonymous (not verified)on Fri, 05/17/2013 - 23:03

Some pretty glaring abilities to perform mysql injection with this system out of the box, but a nice base to start with; thanks. I don't suggest using it "as is" though, because it could compromise your site quite easily. Make sure you sanitize all your _POST strings before inserting them into your mysql query. I'd suggest instead that you use prepared statements. Robbie
Submitted byion (not verified)on Thu, 03/13/2014 - 03:13

In reply to by Anonymous (not verified)

. I don't suggest using it "as is" though, because it could compromise your site quite easily.
Submitted bymaximus (not verified)on Sat, 04/18/2015 - 11:26

tanks very much...update evereting. good blease you
Submitted byJuan Cortez (not verified)on Tue, 11/08/2016 - 05:30

Tampa bay rays moved to Florida in 2020

Add new comment