I need help adding captcha to a Classic ASP (I think) website?

  • Thread starter Thread starter Mikey
  • Start date Start date
M

Mikey

Guest
I need to add a CAPTCHA code to this form on our website and I have tried it so many different ways and cant figure it out. Sometimes I can get it to appear but the "submit" button still lets it go through without checking if you even answer the CAPTCHA here is the coding without any CAPTCHA... what should it look like to get it to work

<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/formchek.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">

function validateForm() {

var myForm = document.frmInfo;
var blnSumbitForm = true;

if (
checkString(myForm.elements["sName"],"Name") &&
checkString(myForm.elements["sPhone"],"Phone Number") &&
checkEmail(myForm.elements["sEmail"],"E-mail Address") &&
checkString(myForm.elements["sType"],"Type of Function") &&
checkString(myForm.elements["sDate"],"Date of Function") &&
checkString(myForm.elements["sNumPeople"],"Number of People")
) {
myForm.submit();
//} else {
//return false;
}
}




</script>

<%

If cint(request.querystring("process") = 1) then


sName = Request.Form("sName")
phone = Request.Form("sPhone")
email = Request.Form("sEmail")
typeFunc = Request.Form("sType")
dateFunc = Request.Form("sDate")
numPeople = Request.Form("sNumPeople")
comments = Request.Form("sComments")

strBody = ""
strBody = "The following information was submitted from the Works Book A Party form: " & vbCrLf & vbCrLf
strBody = strBody & "Name: " & sName & vbCrLf
strBody = strBody & "Phone #: " & phone & vbCrLf
strBody = strBody & "Email: " & email & vbCrLf
strBody = strBody & "Type of Function: " & typeFunc & vbCrLf
strBody = strBody & "Date of Function: " & dateFunc & vbCrLf
strBody = strBody & "Number of Poeple: " & numPeople & vbCrLf

if comments <> "" then
strBody = strBody & vbCrLf & "Comments: " & vbCrLf & comments & vbCrLf & vbCrLf
end if




Set myMail=CreateObject("CDO.Message")
myMail.Subject="The Works Book a Party"
myMail.From=email
myMail.To="[email protected]"
myMail.TextBody=strBody
myMail.Send
set myMail=nothing

'
%>
<html>
<head>
<title>The Works at Wyomissing! :: Thank You </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="description" content="Founded in 2003, The Works at Wyomissing is southeastern Pennsylvania is premier food and fun complex. We’ve renovated a historic foundry into a 33,000 square-foot state-of-the-art dining and entertainment facility">
<META name="keywords" content="The Work at Wyomissing, The Works, entertainment, Reading, Berks, Reading Pa, arcade, arcade games, dining, fund raising, special event hosting, parties, party packages, happy hour, private party rentals, game room, pool, shuffleboard, skee-ball, birthday parties, Christmas parties, charitable events, sales meetings, restaurant and bar, contemporary cuisine, Wyomissing">

<link href="styles.css" rel="STYLESHEET" type="text/css">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" id="NoNav">

<div id="bkgndBlankLong">

<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" id="tblAlign">
<tr>
<td valign="top"><a href="index.asp" name="The Works"><img src="images/logo_panel.jpg" width="186" height="106" alt="The Works" border="0"></a></td>
<td valign="top"><img src="images/7000_contact_banner.jpg" width="584" height="106" alt=""></td>
</tr>
<tr>
<td valign="top" colspan="2"><img src="images/orange_bar.gif" width="770" height="10" border="0"></a></td>
</tr>
<tr>
<td valign="top" width="770" colspan="2">
<table width="770" border="0" cellpadding="0" cellspacing="0" align="center" height="100%">
<tr>
<td valign="top">
<div style="background: url('images/leftsidepanel.jpg') top left no-repeat; display: table; height:583px; width:186px;">
<br><br>
<!--#include file="includes/leftnav.asp"-->
</div>
</td>
<td valign="top">
<div style="background: url('images/blankbackground.jpg') top left no-repeat; display: table; width:584px; height:583px;">


<img src="images/thankyouhed.gif" style="margin:20px 0px 0px 10px;" width="130" height="37" alt="Thank You" border="0"><br>
<p class="ThankYouCopy">Thank you for considering The Works for your next party. <br />We will be contacting you shortly.</p>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>

</div>

</body>
</html>

<%

else

%>

<html>
<head>
<title>The Works at Wyomissing! :: Book a Party</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META name="description" content="Founded in 2003, The Works a
 
Back
Top