I will be very detailed and what I list below is all I need, but I need a very basic PHP comment script that will store my users comments in a .txt file as the database. I will FTP into my server and delete comments from the .txt to maintain it.
I would like the script to display the comments and then have a small form at the bottom asking for (name & comment) then include a simple CAPTCHA (a simple homebrew CAPTCHA is fine, very low traffic site - but reCAPTCHA is ok also).
Please use PHP to make sure the name field is not longer than 25 chars and message field is not longer than 200 chars. Also check the input and strip any tags for HTML/whitespace.
The HTML side of the script can be plain and basic, I will integrate it into my design myself. I am very good with HTML.
For any errors and the successful comment addition, please handle it by simply using echo then "Error X - Go back" or "Comment added - View now".
Lastly, please use PHP only and make sure the code itself is not vulnerable to any attacks. Simplicity is key :)
Thank you, I am new to ScriptLance and look forward to doing several jobs here.