Web Wiz - Solar Powered Eco Web Hosting


Web Wiz CATCHA Version 4.x Advanced Integration



The following step by step guide describes how to install and integrate Web Wiz CAPTCHA into your own websites forms.
  1. Check with your web host that your web space meets the system requirements for running Web Wiz CAPTCHA.
     
  2. Uses a zip utility program to extract the files to your hard drive keeping the original file structure intact.
    Extract files using a zip extraction tool
    The files named 'example.asp' and 'example_process_form.asp' are ONLY examples files of how Web Wiz CAPTCHA works and can be safely deleted.

  3. Place the folder, and it's contents, named 'CAPTCHA' into the same website directory as the web page you wish to integrate Web Wiz CAPTCHA is within.
    Directory Layout
  4. The web page that contains the HTML web form you wish to integrate Web Wiz CAPTCHA into and the page that process the web form submission must have an .asp extension (eg. my_web_form.asp and my_submit_process.asp (these are example file names and not a real files))
    Web Form Page .asp Extension

  5. Open your file (web page) that contains your 'web form' in a text editor and place the following code at the top of the file (not within ASP blocks):-
    <!-- Include file for CAPTCHA configuration -->
    <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->
    Example:
    <!-- Include file for CAPTCHA configuration -->
    <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

    <html>
    <head>
    <title>My Form Submission Page</title>

  6. In the same file place the following code into the part of your form where you wish the CAPTCHA image to be displayed within your 'web form':-
    <!-- include the Web Wiz CAPTCHA form element -->
    <!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->
    Example:
    <form action="example_process_form.asp" method="post" name="myForm" id="myForm">
      Name: <input type="text" name="name" id="name" />
        <!-- include the Web Wiz CAPTCHA form element -->
        <!--#include file="CAPTCHA/CAPTCHA_form_inc.asp" -->

      <input name="Submit Form" type="submit" id="Submit Form" value="Submit" />
    </form>

  7. Next open the file (web page) in a text editor that is to process your web form input and place the following code at the top of the file (not within ASP blocks):-
    <!-- Include file for CAPTCHA configuration -->
    <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

    <!-- Include file for CAPTCHA form processing -->
    <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->
    Example:
    <!-- Include file for CAPTCHA configuration -->
    <!-- #include file="CAPTCHA/CAPTCHA_configuration.asp" -->

    <!-- Include file for CAPTCHA form processing -->
    <!-- #include file="CAPTCHA/CAPTCHA_process_form.asp" -->

    <html>
    <head>
    <title>My Form Submission Page</title>

  8. Within the file you entered the code from the last step into you can call the following variable to check that the CAPTCHA code entered is correct.
    blnCAPTCHAcodeCorrect
    If the CAPTCHA code entered is correct the above variable with be set to True, if the CAPTCHA code has not been entered correctly the variable will be set to False.

  9. Below is some sample code to check the CAPTCHA code is correct:-
    <%
    'If CAPTCHA is entered correctly run the following code
    If Request("CAPTCHA_Postback") AND blnCAPTCHAcodeCorrect = True Then

           'Place code here that is to run if CAPTCHA is entered correctly
           Response.Write("CAPTCHA code is correct")


    'If CAPTCHA is NOT entered correctly run the following code
    ElseIf Request("CAPTCHA_Postback") AND blnCAPTCHAcodeCorrect = False Then

           'Place code here that is to run if CAPTCHA is NOT entered correctly
           Response.Write("CAPTCHA code is NOT correct")
    End If
    %>

You may also want to read through the documentation on Customising the CAPTCHA Image to change colours and noise levels.

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

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 unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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