Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Always get a Incorrect code??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedAlways get a Incorrect code??

 Post Reply Post Reply
Author
smokethisgt View Drop Down
Newbie
Newbie


Joined: 30 March 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote smokethisgt Quote  Post ReplyReply Direct Link To This Post Topic: Always get a Incorrect code??
    Posted: 30 March 2010 at 4:12pm

Hey all, I'm new to the forum and must say this CAPTCHA is great when it works!  I have 3 other sites that are all using the CAPTCHA successfully, so I know on my 4th site it should work as well, but when I correctly enter the CAPTCHA code it always takes me to my "error" redirect site.

Both my contact and "call" page are both asp extensions and i've followed the instructions on the documentation page on this site.  I've even compared the code to the other sites i've created and can't find anything that would throw this off?
 
Any help would be appreciated!
 
Here is the code from the call page: (I've changed the email/SMTP items..)
 
<!-- Include file for CAPTCHA configuration -->
<!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
 
<!-- Include file for CAPTCHA form processing -->
<!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")

Dim Name
Dim Email_Address
Dim Company_Practice

Name = Trim(Request.Form("Name"))
Email_Address = Trim(Request.Form("Email_Address"))
Company_Practice = Trim(Request.Form("Company_Practice"))
 
'validation
Dim validationOK
validationOK=true
IF (Trim(Name)="") Then validationOK=false
If (Trim(Phone)="") Then validationOK=false
If (validationOK=false) Then Response.Redirect ("error.htm" & EmailFrom)
    
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="mail.mydomain.com"
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    
ObjSendMail.Configuration.Fields.Update
    
'End remote SMTP server configuration section==
    
ObjSendMail.To = "myemail@yahoo.com"
ObjSendMail.Subject = "Form Submission"
ObjSendMail.From = "form@mysite.com"
    

ObjSendMail.TextBody = ObjSendMail.TextBody & "Name: " & Name & VbCrLf
ObjSendMail.TextBody = ObjSendMail.TextBody & "Email_Address: " & Email_Address & VbCrLf
ObjSendMail.TextBody = ObjSendMail.TextBody & "Company_Practice: " & Company_Practice & VbCrLf
    
ObjSendMail.Send
'redirect to success page
Response.Redirect("ok.htm?" & EmailFrom)
    
Set ObjSendMail = Nothing
%>
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: 30 March 2010 at 5:17pm
The CAPTCHA sofwtare relies on ASP Sessions. If you are using the exact same setup on other websites and it is working then I would suspect that the issue would be to do with the website not holding ASP sessions.

You are not using a load balanced web server or using mutiple worker processes (web farm) are you?
Back to Top
smokethisgt View Drop Down
Newbie
Newbie


Joined: 30 March 2010
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote smokethisgt Quote  Post ReplyReply Direct Link To This Post Posted: 30 March 2010 at 5:24pm
Thanks for your response Bruce...no load balancer...  I did a little more research and don't think it's the CAPTCHA.  I completely removed it from all both asp forms and still doesn't process correctly.  Must be something within my form/coding.
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.