| Author |
Topic Search Topic Options
|
kmattera
Newbie
Joined: 21 August 2006
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
Topic: Problem with integration.... 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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
kmattera
Newbie
Joined: 21 August 2006
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
kmattera
Newbie
Joined: 21 August 2006
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
kmattera
Newbie
Joined: 21 August 2006
Status: Offline
Points: 4
|
Post Options
Thanks(0)
Quote Reply
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?
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
Edited by -boRg- - 22 August 2006 at 1:30pm
|
|
|
 |