Do you know a web site that gives the code of CAPTCHA ASP form?

BR
BR used Ask the Experts™
on

Do you know a web site that gives the code of CAPTCHA ASP form?

this is a related question w http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_23435363.html 
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
I've been using this for a couple of years now:
http://www.freshmango.com/support/kb/web-design-programming/asp-vbscript-scripts/asp-form-image-code-verification-captcha-script-using-aspjpeg/

Very simple and works well and can be customized to look however you like. It relies on aspJPEG being installed on the online server. (http://www.aspjpeg.com)
try this!. it's very easy!. and will work perfectly!.
     I can't send ASP File so only i send it as a txt file.
Copy the Whole ASP Code form  the File  "captcha.txt". And save it as "captcha.asp". This ASP page will generate the Captcha Image.
Then use the below code in your page where you want to use the captcha control. Here TestCaptcha() function will return 'true' and redirect to next page, if the letters in Captcha and Text Box value are same. else it return 'false' and remains in the same page itself.
<%
function TestCaptcha(byval valSession, byval valCaptcha)
	dim tmpSession
	valSession = Trim(valSession)
	valCaptcha = Trim(valCaptcha)	
	if (valSession = vbNullString) or (valCaptcha = vbNullString) then
		TestCaptcha = false
	else
		tmpSession = valSession
		valSession = Trim(valSession)
		Session(tmpSession) = vbNullString
		if valSession = vbNullString then
			TestCaptcha = false
		else
			valCaptcha = Replace(valCaptcha,"i","I")
			if StrComp(valSession,valCaptcha,1) = 0 then
				TestCaptcha = true
			else
				TestCaptcha = false
			end if
		end if		
	end if
end function
 
if not IsEmpty(Request.Form("Submit")) then	
   if TestCaptcha(Session("ASPCAPTCHA"), Request.Form("captchacode")) then
         Response.redirect "thanks.asp"
else
   Response.Write("<b style=""color:#FF0000"">You entered the wrong code.</b>")
   Response.Write("<BR><BR>")
   end if
end if
 
%>
<FORM ACTION="" METHOD="POST">
<TABLE>
 
<TR>
            <TD WIDTH=233>
              <P>&nbsp;</P>
            </TD>
            <TD  HEIGHT=21 WIDTH=233>
              <P>
                <IMG ID="imgCaptcha" SRC="captcha.asp" /><BR />
                <A HREF="javascript:void(0)" ONCLICK="RefreshImage('imgCaptcha')">Change Image</A>
              </P>
            </TD>
          </TR>
          <TR>
            <TD COLSPAN=2 HEIGHT=21>
              <P></P></TD>
          </TR>
          <TR>
            <TD bordercolor="#FFFFCC" WIDTH=233 HEIGHT=30>Type Characters Above:</TD>
            <TD WIDTH=810 height=21><input name="captchacode" type="text" id="captchacode" size="10" /></TD>
            
          </TR>
</TABLE>
 
</FORM>

Open in new window

captcha.txt
I tried this at:

http://www.sateuropa.co.uk/contact_test.asp

I am getting an error. What have I done wrong please?

Thanks, Simon

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial