Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CAPTCHA redirect setup issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedCAPTCHA redirect setup issue

 Post Reply Post Reply
Author
Web Tech Services View Drop Down
Newbie
Newbie


Joined: 24 October 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Web Tech Services Quote  Post ReplyReply Direct Link To This Post Topic: CAPTCHA redirect setup issue
    Posted: 24 October 2007 at 5:52pm
I'm setting up the Captcha Express onto our company's website, and we've gone throught the steps set forth by the directions. Our problem lies in that each time we input the code and click on "SELECT," we get redirected to the confirmation page, whether we have typed in the correct code or not. Any ideas for why this is happening? All input/ideas are appriciated!

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: 24 October 2007 at 6:41pm
One the main reasons why this happens is if people follow the advanced setup and don't put in to stop processing the rest of the code in your file if the CAPTCHA code is entered incorrectly.

Edited by -boRg- - 24 October 2007 at 6:42pm
Back to Top
Web Tech Services View Drop Down
Newbie
Newbie


Joined: 24 October 2007
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Web Tech Services Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2007 at 8:15pm
Thanks for the help, but I still haven't been able to work it out. I'm using a Content Management System (I hope the Captcha can work with it), and trying to put alert boxes to figure out where I'm having problems... can anyone lend me a hand? Many Thanks!


<%
' Form Designer : contactus.asp
%>
<%sPageID = 5%>
<!-- #include file="include/stdio.inc" -->
<!--#include file="include/header.inc" -->
<%
Function MarkAsRequired(sFieldName, bMarkIt)
     If bMarkIt Then
          MarkAsRequired = "* " & sFieldName
     Else
          MarkAsRequired = sFieldName
     End If
End Function

'**Start Encode**
Const FBT_TEXT = 0
Const FBT_MEMO = 1
Const FBT_MAIL = 2
Const FBT_INT = 3
Const FBT_NUMBER = 4
Const FBT_CBO = 5
Const FBT_RADIOS = 6
Const FBT_CHECKBOXES = 7

Function PadText(sText, iPadTo)
     iLen = Len(sText)
     If iPadTo - iLen > 0 Then PadText = sText + Space(iPadTo - iLen) Else PadText = sText
End Function

Function ParseText(ByVal sText)
     Dim sSQL, rsFields
     
     ' Get a list of fields to parse
     sSQL = "SELECT FieldName, FieldCodeName FROM fbFormFields WHERE FormName = '" & sFormName & "' AND NOT FieldCodeName IS NULL"
     Set rsFields = conDB.Execute(sSQL)
     While Not rsFields.EOF
          sText = Replace(sText, "$" + rsFields("FieldCodeName").Value, Request(rsFields("FieldCodeName").Value))
          rsFields.MoveNext
     Wend
     rsFields.Close
     
     ParseText = sText
End Function

     Sub MailIt(sFrom, sTo, sSubject, sText)
          Dim objEmail
          On Error Resume Next
          Set objEmail = CreateObject("CDO.Message")
          objEmail.BodyPart.ContentTransferEncoding = "quoted-printable"
          objEmail.From = sFrom
          objEmail.To = sTo               
          objEmail.Subject = sSubject
          objEmail.HTMLBody = sText
          objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
          objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = gsSMTPServer
          objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
          If gsCDoAuthenticate = 1 Then
               objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = "1"
               objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = gsContactUsEMail
               objEmail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = gsCDOPassword
          End If
          objEmail.Configuration.Fields.Update
          objEmail.Send
          If Not err.number=0 Then
               Response.write "ERROR: " & err.Description
               err.Clear
          end if
          Set objEmail = Nothing
     
     If False Then
          %>
<pre>
<b>From:   </b> <%=sFrom%>
<b>To:     </b> <%=sTo%>
<b>Subject:</b> <%=sSubject%>

<%=sText%>
</pre>
<hr>
          <%
     End If
End Sub

' Proccess this form as requested
Select Case Request("cmd")
     Case "proccess"
          ' Cache form name and mailto properties
          sFormName = Request("form")
          If Len(sFormName) = 0 Then
               sFormName = 2
          End If
          'Die Len(sFormName) = 0, "No form name was supplied."
          ' Get mail header and footer
          sSQL = "SELECT MailSubject, MailHeader, MailFooter, MailTo, ARMailSubject, ARMailHeader, ARMailFooter, ARMailTo, ARText FROM fbForms WHERE FormName = '" & sFormName & "'"
          rsData.Open sSQL
          Die IsRSEmpty(rsData), "Form not found when proccessing it."
          
          ' Get field names for this form
          sSQL = "SELECT FieldName, FieldCodeName, FieldType FROM fbFormFields WHERE FormName = '" & sFormName & "' ORDER BY OrderShown, FieldName"
          Set rsFields = conDB.Execute(sSQL)
          Die IsRSEmpty(rsFields), "It seems like the fields for this form that is being proccessing were deleted."
          
          ' Create a dictionary to store mail content for fields. I used this array to calculate the longest names
     
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.