| Added: October/15/2007 at 10:58pm | IP Logged
|
|
|
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"> </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
|