Print Page | Close Window

Problem with integration....

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz CAPTCHA
Forum Description: Support forum for the Web Wiz CAPTCHA security image.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21099
Printed Date: 28 March 2026 at 2:25am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with integration....
Posted By: kmattera
Subject: Problem with integration....
Date Posted: 21 August 2006 at 9:15pm
I have just installed the WebWiz Captcha application on my server and am getting an error once I had all the files modified as indicated in the instructions. 
 
There error is:
 
 "Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'strTxtLoadNewCode'

/customersupport/CAPTCHA/CAPTCHA_setup.asp, line 63 "

I searched through the Forum but didn't see anything on this error.  Can someone help.
 
Thanks so much!
 
Kellie
 



Replies:
Posted By: WebWiz-Bruce
Date Posted: 21 August 2006 at 10:38pm
This means that you are using Option Explicit somewhere in your code which means all variables must be declared.

Add the following line in the ASP on the file giving the error:-

Dim strTxtLoadNewCode

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kmattera
Date Posted: 21 August 2006 at 11:16pm
Well, that solved that problem but now it is not requiring the correct code (or any code for that matter) to be entered.  Sorry... I'm a newbie at all of this.


Posted By: WebWiz-Bruce
Date Posted: 22 August 2006 at 8:05am
You need to follow the install instructions, placing the code that checks the input into the file that the page is submitted to. This file needs to be an ASP file with a .asp extension.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kmattera
Date Posted: 22 August 2006 at 12:12pm

I realized the instructions were a little different than what I needed to do in a cdonts email page.  So I have that working now.  Thanks!

One more question....
 
If the code is incorrect, is there a way for that statement to appear on the form itself, rather than display on a blank page? 


Posted By: WebWiz-Bruce
Date Posted: 22 August 2006 at 12:29pm
What you could do is display the message but also have a back button so that the user doesn't loose their content eg:-


If blnCAPTCHAcodeCorrect = True Then
            Response.Write(" CAPTCHA code is correct")
ElseIf  blnCAPTCHAcodeCorrect = False Then
            Response.Write(" CAPTCHA code is NOT correct")
            Response.Write("<a href=""javascript:history.back(1)"">Click here to amend</a>")
End If


By using the javascript back method it should mean the forms retains the users data so they don't need to re-input it again.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kmattera
Date Posted: 22 August 2006 at 12:41pm
Thanks!   I'm looking around to see how I could have the error "code is incorrect" to display on the original form.  Is that possible?  Is that considered a response.redirect?


Posted By: WebWiz-Bruce
Date Posted: 22 August 2006 at 1:30pm
It can be done but it's more complicated, you would need to have the file submit to itself, then do a test to see if it is a post back, if so run the code from the submit file, this way you would have the data available to repopulate the fields if the code was entered incorrectly, using Request.Form

If you use Response.Redirect the user would need to fill in the entire form again.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: nakdtree
Date Posted: 22 August 2006 at 5:21pm

I too am having integration errors on my gdform.asp.

This is my error

Microsoft VBScript compilation error '800a03f9'

Expected 'Then'

/gdform.asp, line 6

Elseif  blnCAPTCHAcodeCorrect = False The
--------------------------------------^


Posted By: nakdtree
Date Posted: 22 August 2006 at 5:40pm
Ok...  I figured that part out....  I lost the "n" on the end.
 
Now its not verifying the code...  The form goes through any or no code at all.
 
I could give you my page code...  but I am guessing you would rather I didn't.
 
Here is just the top of the page with the first few lines of the original gdform.asp.
 
<!-- Include file for CAPTCHA form processing -->            
 <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
<%
If blnCAPTCHAcodeCorrect = True Then
            Response.Write(" CAPTCHA code is correct")
Elseif  blnCAPTCHAcodeCorrect = False Then
            Response.Write(" CAPTCHA code is NOT correct")
            Response.Write("<a href=""javascript:history.back(1)"">Click here to amend</a>")         
end if
Dim landing_page, host_url
Dim fso, outfile, filename, dirname, myFolder
Dim req_method, key, value
Dim bErr, errStr, bEmpty
On Error resume next
bErr = false
 
 


Posted By: drunkensunset
Date Posted: 23 August 2006 at 1:05pm
I have the same problem, even if I wont type anything in the area where I'm supposed to enter the code the form goes through.

I'm trying to add a spam-protection on a MySQL-based guestbook.


-------------
- Will there be beer?
- No.
- What kinds of beer?
/Homer J. Simpson


Posted By: WebWiz-Bruce
Date Posted: 23 August 2006 at 1:10pm
Try using the Web Wiz Guestbook from this site, it already has the CAPTCHA integrated as well as lots of other anti-spam tools. There is also a mySQL version available.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net