Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
CJWSoft Captcha System Support
 CJWSoft Support Info : CJWSoft Captcha System Support
Subject Info: Directions for CJWSoft Contact Forms A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
cwilliams
Admin Group
Admin Group
Avatar
CJWSoft Web Software Developer

Joined: April/06/2004
Online Status: Offline
Info: 1769
Added: October/15/2007 at 10:58pm | IP Logged Quote cwilliams

These are directions to use the CJWSoft Captcha System with the FREE CJWSoft Self Submitting Contact Us Forms.

http://www.cjwsoft.com/paypal_contact_us_form.asp
or
http://www.cjwsoft.com/paypal_email_via_gmail.asp


Instructions:

Download one of the contact form downloads and get it working before you go any farther.

Once your contact form works and sends an email do the following to add the Captcha.


Unzip the Captcha download and copy the "captcha" directory into the same folder as "contact_us.asp"

edit the "captcha/config_inc.asp"
Enter the correct path for the "display_captcha_path" value
Enter the correct path for the "border_images_path" value

There are other settings in that file and they all commented..
For now though I woud suggest you leave the other settings alone.
(they are optional and you can come back to them after you get the basics working)

Now edit "contact_us.asp" with a text editor and add the code shown below in blue. The code around it is shown to help you find the area of code where it gets placed.



 If ContactUs_Body = "" Then
  IsError = "Yes"
  Response.Write("<font color=""red"">You did not enter a Body.</font><br>")
 End If
 
 If Session("CAPTCHA") <> "" And LCase(Request("ToCheck")) = Session("CAPTCHA") Then
 else
  IsError = "Yes"
  Response.Write("<font color=""red"">You did not type in the verification info correctly.</font><br>")
 End If

 
End If





And again lower down on the page..



  <tr>
   <td valign="top">
    Message:
   </td>
   <td valign="top">
    <textarea rows="10" name="ContactUs_Body" cols="40"><% =ContactUs_Body %></textarea>
   </td>
  </tr>

  <tr>
   <td valign="top">
    Verification:
   </td>
   <td valign="top">
    <!--#include file = "captcha/create_captcha_inc.asp"-->
   </td>
  </tr>

  <tr>
   <td valign="top">
    &nbsp;
   </td>
   <td colspan="2">
    <input type="submit" value="Send Message">
   </td>
  </tr>


You're done. You just added a Capcha Security Image to your signup form.



__________________

Best Regards, Christopher Williams www.CJWSoft.com
Back to Top View cwilliams's Profile Search for other info by cwilliams Visit cwilliams's Homepage
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area


vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.powerasp.com,www.aspclassifieds.com,www.aspphotogallery.com,www.codewanker.com