Seng
10-11-2007, 07:30 AM
Hey guys,
I've found a free open-source captcha to be employed in my registration form. However, I don't know how to implement the captcha's validation in my registration form itself!
More info:
My asp registration form used javascript for validation. Once the user has filled all the required fills and pressed the 'submit' button, the data will be inserted to the database. So how do I implement Captcha's validation on the form itself?
This is the captcha's validation code the site gave me, they said it's to be entered into another .asp page which I don't want:
-----------------------
strCAPTCHA = Trim(Request.Form("strCAPTCHA"))
if strCAPTCHA = Trim(Session("CAPTCHA_" & Session.SessionID)) then
else
ErrorMessage = ErrorMessage & Server.URLEncode("You did not type in the verification info correctly.\n\n")
End If
-----------------------
Here's the official site and the 'how-to' section:
TipsTricks (http://www.tipstricks.org/howto_1.htm)
I've found a free open-source captcha to be employed in my registration form. However, I don't know how to implement the captcha's validation in my registration form itself!
More info:
My asp registration form used javascript for validation. Once the user has filled all the required fills and pressed the 'submit' button, the data will be inserted to the database. So how do I implement Captcha's validation on the form itself?
This is the captcha's validation code the site gave me, they said it's to be entered into another .asp page which I don't want:
-----------------------
strCAPTCHA = Trim(Request.Form("strCAPTCHA"))
if strCAPTCHA = Trim(Session("CAPTCHA_" & Session.SessionID)) then
else
ErrorMessage = ErrorMessage & Server.URLEncode("You did not type in the verification info correctly.\n\n")
End If
-----------------------
Here's the official site and the 'how-to' section:
TipsTricks (http://www.tipstricks.org/howto_1.htm)