Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with integration....
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedProblem with integration....

 Post Reply Post Reply Page  12>
Author
kmattera View Drop Down
Newbie
Newbie


Joined: 21 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kmattera Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
kmattera View Drop Down
Newbie
Newbie


Joined: 21 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kmattera Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kmattera View Drop Down
Newbie
Newbie


Joined: 21 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kmattera Quote  Post ReplyReply Direct Link To This Post 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? 
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
kmattera View Drop Down
Newbie
Newbie


Joined: 21 August 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote kmattera Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.