Possible Duplicate:
Requesting NAME OF FORM by php
I have a form with no captcha and this is submitting by POST method.I am fearing for Spamming. User can spam my database by ajax. How will i protect it by Spammers.ANy idea.. thanks in advance.
Use a simple addition field.
Ask something like: 2 + 3=
And verify that the value is 5 using PHP.
Its a very simplistic captcha, but its better than nothing. Can easily be cracked though.