tags:

views:

28

answers:

1

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.

+1  A: 

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.

Rohan
+1 for the interesting (but nowadays surprisingly common) solution and the warning.
MvanGeest