Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - WebWiz CAPTCHA not working as expected
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedWebWiz CAPTCHA not working as expected

 Post Reply Post Reply
Author
macnimation View Drop Down
Newbie
Newbie


Joined: 16 September 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote macnimation Quote  Post ReplyReply Direct Link To This Post Topic: WebWiz CAPTCHA not working as expected
    Posted: 11 September 2006 at 1:40pm
Hi,
 
I have tried to integrate the CAPTCHA feature into an existing Comments form due to recent autobot spamming.
 
I have followed the instructions exactly but I am not getting the required results.
 
1) When I fill out the form and I do not input the code, the page displays that the "CAPTCHA code is NOT correct" but my database populates with the form information anyway.
 
2) If I fill out the form correctly and I DO input the code, I still get "CAPTCHA code is NOT correct" and the database is populated again with the Form information.
 
The form itself uses Yaromats Check form to Validate the fields, but i don't think this should have an effect on the WebWiz CAPTCHA Application.
 
Should the CAPTCHA application block the insertion of the form into the database even if the fields are filled out correctly even though the code is not input or input wrong?
 
cheers
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: 11 September 2006 at 2:30pm
1. if your database is still populated it sounds like you are not processing the input in the correct way and are populating the database before you check the CAPTCHA is filled in correctly.

2. This could be either that you have not setup the CAPTCHA correctly or there is an issue with the server holding session data.
Back to Top
macnimation View Drop Down
Newbie
Newbie


Joined: 16 September 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote macnimation Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2006 at 1:32pm
I'll try setting it up again to see what happens. I'm hosting a website myself so I see what happens.
 
The examples that you provided work fine.
 
The form without the Webwiz CAPTCHA works fine, where, if I dont put in the correct criteria then it will not update the database.
 
I have a page called commentsOK.asp that is targeted when the Submit button is clicked.
 
I placed the include
 
<!-- Include file for CAPTCHA form processing -->            
 <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
 
at the very top of that page, and then placed the:
<%
  If blnCAPTCHAcodeCorrect = True Then
   Response.Write(" CAPTCHA code is correct")
  ElseIf  blnCAPTCHAcodeCorrect = False Then
   Response.Write(" CAPTCHA code is NOT correct")
  End If
  %>
 
in the body of the page. Is this correct?
 
cheers
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: 12 September 2006 at 2:31pm
After Response.Write(" CAPTCHA code is NOT correct") you may want to put in the following so the rest of the file is not processed:-

Response.Flush
Response.End
Back to Top
macnimation View Drop Down
Newbie
Newbie


Joined: 16 September 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote macnimation Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2006 at 6:30pm
Cheers, I'll give it a go.
 
Thanks for the help.
Back to Top
 Post Reply Post Reply

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.