Web Wiz
Home
Home
Hosting Services
Hosting Services
Knowledgebase
Knowledgebase
Community and Support Forums
Support Forums
Customer Login
Customer Login

  New Posts New Posts RSS Feed - CAPTCHA incorrect in my form, but example works
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Windows Web Hosting 30 Day Free Trial

Windows Web Hosting 30 Day Free Trial

Windows Hosting 30 Day Free Trial, with no obligation, on all our Windows Web and Reseller Hosting Packages.

For moreĀ informationĀ see our Windows Hosting 30 Day Free Trial page.

CAPTCHA incorrect in my form, but example works

 Post Reply Post Reply
Author
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Poole, England
Status: Offline
Points: 7797
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Topic: CAPTCHA incorrect in my form, but example works
    Posted: 13 April 2009 at 8:33am
You mention in your first post that the page you are submitting to is called upload.asp. I can assume from this then that the you are uploading files?

To upload files to the server you have to change the form enctype type to:-

enctype="multipart/form-data"

This changes the way data is posted to the server which would mean that you can not read in the form data from the CAPTCHA security code text field using the normal Request.Form method.

The only way you would get web wiz captcha to work is to recode the CAPTCHA security code checking code to use the upload component that you are using to get the form data.
Back to Top
MrTWS View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrTWS Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2009 at 4:51pm
Okay - I only ask because sometimes it helps to see what is happening. I assume that you have installed the captcha folder in the root directory, and the includes statement obviously on the contact.asp page (or whatever the contact page is named)

It sounds like some other coding within the page is preventing the captcha from working. Perhaps you need to place the include code higher up the page? I'm only guessing that another includes file that you may have on that page is stopping it, especially if you have already had it working elsewhere
Back to Top
jcrossfield View Drop Down
Newbie
Newbie
Avatar

Joined: 10 April 2009
Location: Auburn, CA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcrossfield Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2009 at 4:38pm

I installed it on my client's site...I cannot share the link as the upload page is in a secure area that requires login.  I developed the login area from scratch, using .asp.

Yes, I did edit the one captcha file as specified in the instructions.
Back to Top
MrTWS View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote MrTWS Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2009 at 4:33pm
What site have you tried to install the captcha on? Bear in mind that you have to edit one of the captcha files too
Back to Top
jcrossfield View Drop Down
Newbie
Newbie
Avatar

Joined: 10 April 2009
Location: Auburn, CA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcrossfield Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2009 at 4:16pm
Hi All,
 
I'm hoping someone can help me get to the bottom of this problem.
 
I installed the web wiz captcha 4.0 to my site and the example file works perfectly. I installed the CAPTCA to my .asp upload form, placing the code in the appropriate spots. The only difference is that my form submits to the same page. I found an example of a submit to same page for processing and made sure my installation matched that.
 
Anway, whenever I submit my form it always comes back as Incorrect and where I have it display the session variable CAPTCHA_Postback, that session var, and other session var's from the CAPTCHA are also blank. Session variables work on this site, I know because I use them throughout the site for other functionality.
 
Please let me know if you have any ideas or need further info. Thank you!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



Become a Fan on Facebook Follow us on Twitter Find us on Google+ Community Forums Web Wiz Blogs Web Wiz News
Company Information | Contact Web Wiz | Terms & Conditions | Privacy Policy

Prices exclude VAT unless otherwise stated - $, € prices shown as a guideline only
Web Wiz Ltd, Unit 10E Dawkins Road Ind. Est, Poole, Dorset, UK, BH15 4JD
Copyright ©2001-2012 Web Wiz - All rights reserved