problem setting up CAPTCHA in ColdFusion 8, using CAPTCHA solution at www.bennadel.com

Hello. I have been trying to set up CAPTCHA in ColdFusion 8, using the CAPTCHA solution at www.bennadel.com:

http://www.bennadel.com/blog/873-Using-CAPTCHA-In-ColdFusion-8.htm

It looks like a great solution if I can get it to work. I almost have it working. You can see what I have done, here:

https://www.ascassociation.org/june2009.cfm

(It is a long, complicated form.)

However, the CAPTCHA check does not work. I can send the form without filling in the CAPTCHA characters, or if I fill in incorrect characters.

I have tried carefully to adapt the www.bennadel.com solution to my form, but obviously I am missing something. I have been staring at this problem all evening.

Does anyone have an idea what I am doing wrong?

I am thinking I need to change cfinput to input; of vice-versa?

Thanks very much for your help.

Eric
<cfif CGI.https is "Off">
<cflocation url="https://#cgi.server_name##cgi.script_name#?#cgi.query_string#" addtoken="no" />
</cfif>
 
<!--- CAPTCHA code from http://www.bennadel.com/blog/873-Using-CAPTCHA-In-ColdFusion-8.htm --->
 
 
<!--- CAPTCHA code --->
<!--- Kill extra output. --->
<cfsilent>
 
	<!--- Param FORM values. --->
	<cfparam
		name="FORM.captcha"
		type="string"
		default=""
		/>
 
	<cfparam
		name="FORM.captcha_check"
		type="string"
		default=""
		/>
 
	<cftry>
		<cfparam
			name="FORM.submitted"
			type="numeric"
			default="0"
			/>
 
		<cfcatch>
			<cfset FORM.submitted = 0 />
		</cfcatch>
	</cftry>
 
 
	<!--- Set a flag to see if this user is a bot or not. --->
	<cfset blnIsBot = true />
 
 
	<!--- Check to see if the form has been submitted. --->
	<cfif FORM.submitted>
 
		<!---
			Decrypt the captcha check value. Since this was
			submitted via a FORM, we have to be careful about
			attempts to hack it. Always put a Decrypt() call
			inside of a CFTry / CFCatch block.
		--->
		<cftry>
 
			<!--- Decrypt the check value. --->
			<cfset strCaptcha = Decrypt(
				FORM.captcha_check,
				"bots-aint-sexy",
				"CFMX_COMPAT",
				"HEX"
				) />
 
			<!---
				Check to see if the user-submitted value is
				the same as the decrypted CAPTCHA value.
				Remember, ColdFusion is case INsensitive with
				the EQ opreator.
			--->
			<cfif (strCaptcha EQ FORM.captcha)>
 
				<!---
					The user entered the correct text. Set the
					flag for future use.
				--->
				<cfset blnIsBot = false />
 
			</cfif>
 
			<!--- Catch any errors. --->
			<cfcatch>
 
				<!--- Make sure the bot flag is set. --->
				<cfset blnIsBot = true />
 
			</cfcatch>
		</cftry>
 
	</cfif>
 
 
 
	<!---
		Before we render the form, we have to figure out
		which CAPTCHA text we are going to display. For
		this, we have to come up with a random combination
		of letters/numbers. For this, we are going to use an
		easy solution which is shuffling an array of valid
		characters.
	--->
 
	<!---
		Create the array of valid characters. Leave out the
		numbers 0 (zero) and 1 (one) as they can be easily
		confused with the characters o and l (respectively).
	--->
	<cfset arrValidChars = ListToArray(
		"A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z," &
		"2,3,4,5,6,7,8,9"
		) />
 
	<!--- Now, shuffle the array. --->
	<cfset CreateObject(
		"java",
		"java.util.Collections"
		).Shuffle(
			arrValidChars
			)
		/>
 
	<!---
		Now that we have a shuffled array, let's grab the
		first 8 characters as our CAPTCHA text string.
	--->
	<cfset strCaptcha = (
		arrValidChars[ 1 ] &
		arrValidChars[ 2 ] &
		arrValidChars[ 3 ] &
		arrValidChars[ 4 ] &
		arrValidChars[ 5 ] &
		arrValidChars[ 6 ] &
		arrValidChars[ 7 ] &
		arrValidChars[ 8 ]
		) />
 
 
	<!---
		At this point, we have picked out the CAPTCHA string
		that we want the users to ender. However, we don't
		want to pass that text anywhere in the form otherwise
		a spider might be able to scrape it. Thefefore, we now
		want to encrypt this value into our check field.
	--->
	<cfset FORM.captcha_check = Encrypt(
		strCaptcha,
		"bots-aint-sexy",
		"CFMX_COMPAT",
		"HEX"
		) />
 
</cfsilent>
 
 
    
    <!--- /CAPTCHA code --->
 
 
  <!--- include secure header --->
<cfinclude template="/SiteHeaderSecure.cfm" />
 
<!--- When the user submits the Form, she sees the information that she sent --->
 
 
<cfif IsDefined('RegistrationID')>
 
   <!--- If RegistrationID is defined, display "success" message to user --->
 
 <h2>Thank you for submitting information to register for ASC Communications and the Ambulatory Surgery Foundation's Orthopedic Spine and Pain Management-Driven Conference, June 11 &#8211; 13 2009, at the Westin Hotel in Chicago, Illinois.</h2>
 
  <p>Your form is being processed.  Within two weeks, you will receive official confirmation and your receipt of payment by email from the Ambulatory Surgery Foundation with meeting details.  Please don't hesitate to call the registration office with questions at 703.836.5904 or email <a href="mailto:registration@ascassociation.org">registration@ascassociation.org</a>.</p>
 
  <p>Here is the information you sent:</p>
  
  <!--- set default values --->
  <cfparam name="RegistrationID" default="">
  <cfparam name="FirstName" default="">
  <cfparam name="LastName" default="">
  <cfparam name="Degree" default="">
  <cfparam name="Title" default="">
  <cfparam name="FacilityCompany" default="">
  <cfparam name="Address1" default="">
  <cfparam name="Address2" default="">
  <cfparam name="City" default="">
  <cfparam name="State" default="">
  <cfparam name="Zip" default="">
  <cfparam name="Phone" default="">
  <cfparam name="Fax" default="">
  <cfparam name="Email" default="">
  <cfparam name="WebSite" default="">
  <cfparam name="RNLicenseNumber" default="">
  <cfparam name="MainConference1stAttendeeAmountBefore5May625" default="">
  <cfparam name="MainConference2ndAttendeeAmountBefore5May575" default="">
  <cfparam name="MainConference3rdAttendeeAmountBefore5May525" default="">
  <cfparam name="MainConference4thAttendeeAmountBefore5May500" default="">
  <cfparam name="MainConference1stAttendeeAmountAfter5May725" default="">
  <cfparam name="MainConference2ndAttendeeAmountAfter5May675" default="">
  <cfparam name="MainConference3rdAttendeeAmountAfter5May625" default="">
  <cfparam name="MainConference4thAttendeeAmountAfter5May600" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountBefore5May825" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountBefore5May775" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountBefore5May725" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountBefore5May700" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountAfter5May925" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountAfter5May875" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountAfter5May825" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountAfter5May800" default="">
  <cfparam name="BeckersASCReviewSpecialDiscount" default="">
  <cfparam name="ASCReviewSubscriberDiscountOneHundred" default="">
  <cfparam name="TotalEnclosed" default="">
  <cfparam name="FORM.CheckEnclosed" default="">
  <cfparam name="CheckNumber" default="">
  <cfparam name="FORM.AuthorizeCharge" default="">
  <cfparam name="CreditCard" default="">
  <cfparam name="CreditCardNumber" default="">
  <cfparam name="ExpirationDate" default="">
  <cfparam name="PrintedCardHolderName" default="">
  <cfparam name="CreditCardZIPCode" default="">
  <cfparam name="CVV" default="">
  <cfparam name="DateCreated" default="">
 
 
<cfoutput>
<p><strong>RegistrationID:</strong> #RegistrationID#</p>
<CFIF FirstName IS NOT ""><p><strong>First Name:</strong> #FirstName#</p></CFIF>
<CFIF LastName IS NOT ""><p><strong>Last Name:</strong> #LastName#</p></CFIF>
<p><strong>Credential:</strong> #Degree#</p>
<p><strong>Title:</strong> #Title#</p>
<CFIF FacilityCompany IS NOT ""><p><strong>Facility / Company:</strong> #FacilityCompany#</p></CFIF>
<p><strong>Address Line 1:</strong> #Address1#</p>
<CFIF Address2 IS NOT ""><p><strong>Address Line 2:</strong> #Address2#</p></CFIF>
<p><strong>City:</strong> #City#</p>
<p><strong>State:</strong> #State#</p>
<p><strong>Zip:</strong> #Zip#</p>
<p><strong>Phone:</strong> #Phone#</p>
<CFIF Fax IS NOT ""><p><strong>Fax:</strong> #Fax#</p></CFIF>
<p><strong>Email:</strong> #Email#</p>
<CFIF WebSite IS NOT ""><p><strong>Web Site:</strong> #WebSite#</p></CFIF>
 
<CFIF RNLicenseNumber IS NOT ""><p><strong>RN License Number:</strong>  #RNLicenseNumber#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountBefore5May625 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference1stAttendeeAmountBefore5May625#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountBefore5May575 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference2ndAttendeeAmountBefore5May575#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountBefore5May525 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference3rdAttendeeAmountBefore5May525#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountBefore5May500 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference4thAttendeeAmountBefore5May500#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountAfter5May725 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainConference1stAttendeeAmountAfter5May725#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountAfter5May675 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference2ndAttendeeAmountAfter5May675#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountAfter5May625 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference3rdAttendeeAmountAfter5May625#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountAfter5May600 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainConference4thAttendeeAmountAfter5May600#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountBefore5May825 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountBefore5May825#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountBefore5May775 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountBefore5May775#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountBefore5May725 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountBefore5May725#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountBefore5May700 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountBefore5May700#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountAfter5May925 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountAfter5May925#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountAfter5May875 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountAfter5May875#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountAfter5May825 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountAfter5May825#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountAfter5May800 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountAfter5May800#</p></CFIF>
 
<CFIF BeckersASCReviewSpecialDiscount IS NOT ""><p><strong>Beckers ASC Review Special Discount:</strong> #BeckersASCReviewSpecialDiscount#</p></CFIF>
<CFIF ASCReviewSubscriberDiscountOneHundred IS NOT ""><p><strong>ASC Review Subscriber Discount ($50):</strong> #ASCReviewSubscriberDiscountOneHundred#</p></CFIF>
<CFIF TotalEnclosed IS NOT ""><p><strong>Total Enclosed:</strong> #TotalEnclosed#</p></CFIF>
<CFIF CheckEnclosed IS NOT ""><p><strong>Check Enclosed:</strong> #FORM.CheckEnclosed#</p></CFIF>
<CFIF CheckNumber IS NOT ""><p><strong>Check Number:</strong> #CheckNumber#</p></CFIF>
<CFIF AuthorizeCharge IS NOT ""><p><strong>Authorize Charge:</strong> #FORM.AuthorizeCharge#</p></CFIF>
<CFIF CreditCard IS NOT ""><p><strong>Credit Card:</strong> #CreditCard#</p></CFIF>
<CFIF CreditCardNumber IS NOT ""><p><strong>Credit Card Number:</strong> (Obscured for security)</p></CFIF>
<CFIF ExpirationDate IS NOT ""><p><strong>Expiration Date:</strong> (Obscured for security)</p></CFIF>
<CFIF PrintedCardHolderName IS NOT ""><p><strong>Printed Card Holder Name:</strong> #PrintedCardHolderName#</p></CFIF>
<CFIF CreditCardZIPCode IS NOT ""><p><strong>Credit Card ZIP Code:</strong> #CreditCardZIPCode#</p></CFIF>
<CFIF CVV IS NOT ""><p><strong>CVV:</strong> #CVV#</p></CFIF>
<p><strong>Date Submitted:</strong> #DateCreated#</p>
  
</cfoutput>
 
 
  
  <!--- If RegistrationID not defined, then display the form to the user ---> 
<cfelse>
 
 
 <!--- This is a form to populate conference registration information in table RegistrationEntries --->
 
<cfform action="/conference_data_insert.cfm" enctype="multipart/form-data">
 
<!--- This is the hidden field that will flag form submission for data validation. --->
			<input type="hidden" name="submitted" value="1" />
 
			<!---
				This is the hidden field that we will check the
				user's CAPTCHA text against. This is an encrypted
				field so that spiders / bots cannot use it to
				their advantage.
			--->
            
			<input
				type="hidden"
				name="captcha_check"
				value="#FORM.captcha_check#"
				/>
  
  <h1>Orthopedic Spine and Pain Management-Driven Conference</h1>
 
 <h3>June 11 &#8211; 13 2009</h3>
 
<h3>Westin Hotel, Chicago, Illinois</h3>
 
  
<h2>REGISTRATION INFORMATION</h2>
 
	<table class="uvatable">
	<tr><td class="uvatable-left"><strong>First Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FirstName" /></td></tr>
	<tr><td class="uvatable-left"><strong>Last Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="LastName" /></td></tr>
		<tr><td class="uvatable-left"><strong>Credential:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Degree" /></td></tr>
		<tr><td class="uvatable-left"><strong>Title:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Title" /></td></tr>
	<tr><td class="uvatable-left"><strong>Facility / Company:</strong></td> 	<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FacilityCompany" /></td></tr>
	<tr><td class="uvatable-left"><strong>Address Line 1:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address1" /></td></tr>
		<tr><td class="uvatable-left"><strong>Address Line 2:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address2" /></td></tr>
	<tr><td class="uvatable-left"><strong>City:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="City" /></td></tr>
	<tr><td class="uvatable-left"><strong>State:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="State" /></td></tr>	
	<tr><td class="uvatable-left"><strong>ZIP:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="Zip" /></td></tr>
	<tr><td class="uvatable-left"><strong>Phone:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Phone" /></td></tr>
	<tr><td class="uvatable-left"><strong>Fax:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Fax" /></td></tr>
	<tr><td class="uvatable-left"><strong>Email:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Email" /></td></tr>
		<tr><td class="uvatable-left"><strong>Web Site:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="WebSite" /></td></tr>
 
<tr><td class="uvatable-left"><strong>RN License Number:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="RNLicenseNumber" /></td></tr>
 
	</table>
	
<h1>REGISTRATION FEES</h1>
 
 <p>Receive multiple registrant discount(s). The more people you send the greater discount you receive. The prices listed
below are per person. Simply submit a separate registration form for each attendee. Your registration includes all conference sessions, materials and meal functions.</p>
 
 
<h2>MAIN CONFERENCE ONLY</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td class="uvatable-left"><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
	<td class="uvatable-left"><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountBefore5May625" /></td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountAfter5May725" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$575</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountBefore5May575" /></td>
	<td class="uvatable-left">$675</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountAfter5May675" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$525</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountBefore5May525" /></td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountAfter5May625" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$500</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountBefore5May500" /></td>
	<td class="uvatable-left">$600</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountAfter5May600" /></td>
 
</tr>
</table>
 
<p><em>Ask about larger group discounts.</em></p>
 
 
<h2>MAIN CONFERENCE + PRE-CONFERENCE</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
	<td><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountBefore5May825" /></td>
	<td class="uvatable-left">$925</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountAfter5May925" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$775</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountBefore5May775" /></td>
	<td class="uvatable-left">$875</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountAfter5May875" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountBefore5May725" /></td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountAfter5May825" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$700</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountBefore5May700" /></td>
	<td class="uvatable-left">$800</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountAfter5May800" /></td>
 
</tr>
</table>
 
 
 
<h2>OPTIONAL</h2>
 
<table class="uvatable">
<tr>
	<td class="uvatable-left">Becker's ASC Review Special Discount Offer</td>
	<td class="uvatable-left">$100 (per year) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="BeckersASCReviewSpecialDiscount" /></td>
</tr>
<tr>
	<td class="uvatable-left">$100 Discount per attendee if paid ASC Association Member
or Becker's ASC Review Subscriber </td>
	<td class="uvatable-left">(- $100) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ASCReviewSubscriberDiscountOneHundred" /></td>
</tr>
<tr>
	<td></td>
	<td class="uvatable-left"><strong>TOTAL ENCLOSED</strong></td>
	<td><cfinput TYPE="text" SIZE="30" NAME="TotalEnclosed" /></td>
</tr>
</table>
 
 
 
 
<h1>PAYMENT INFORMATION</h1>
 
<p>To remit payment, you may print this form and mail it to Ambulatory Surgery Foundation with a check (see information below). Or, submit your credit card information, below. Credit card information is submitted through a secure connection, certified by SecureTrust.</p>
 
<p class="float-left"><cfinput type="Checkbox" name="CheckEnclosed"  class="border0" /> Enclosed is a check, payable to Ambulatory Surgery Foundation.</p> 
 
<p class="float-right">Check # <cfinput TYPE="text" SIZE="30" NAME="CheckNumber" /></p>
 
<div class="clear-both"></div>
 
<p class="float-left"><cfinput type="Checkbox" name="AuthorizeCharge" class="border0" /> I authorize Ambulatory Surgery Foundation to charge my:</p>
 
<p class="float-right">
<select name="CreditCard" class="ChicagoSelect red">
<option value="SelectCard">Select a Credit Card</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="AmericanExpress">American Express</option></select></p>
 
 
<div class="clear-both"></div>
 
 
<table class="uvatable">
<tr>
	<td>Credit Card Number:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardNumber" /></td>
	<td>Expiration Date:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ExpirationDate" /></td>
</tr>
<tr>
	<td>Printed Cardholder Name:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="PrintedCardHolderName" /></td>
	<td>Zip Code:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardZIPCode" /></td>
</tr>
<tr>
	<td>Signature (if printing and mailing):</td>
	<td></td>
	<td>CVV#/3-digit #:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CVV" /></td>
</tr>
</table>
 
 
 
 
 
  <!--- begin CAPTCHA cfoutput --->
<cfoutput>
 
<div class="align-center">
 
				  <!---
					Output the CAPTCHA image to the browser.
					Here, we are using a difficulty of medium.
				--->
				  <cfimage
					action="captcha"
					height="75"
					width="363"
					text="#strCaptcha#"
					difficulty="medium"
					fonts="verdana,arial,times new roman,courier"
					fontsize="28"
					/>
	</div>
        
        
	
<p class="align-center">
 
<label for="captcha">As an antispam measure, please enter the characters you see in the image above:</label>
 
			<input type="text"
				name="captcha"
				id="captcha"
				value="" />
                
 </p>
 
 
 
		
 
<p class="align-center"><cfinput type="submit" name="submit" value="Submit Registration" /></p>
 
 
 <br />
 
 
			<!---
				Check to see if the form has been submitted so
				we can see if we need to show the validation.
			--->
			<cfif FORM.submitted>
 
				<h3>
					Bot Validation Results
				</h3>
 
				<!--- Check for a bot. --->
				<cfif blnIsBot>
 
					<p>
						You Are A Bot!!!
					</p>
 
				<cfelse>
 
					<p>
						You are not a bot :)
					</p>
 
				</cfif>
 
			</cfif>
 
 
  <!--- close CAPTCHA cfoutput --->
 </cfoutput>
 
 <!--- close CFFORM --->
</cfform>
 
 
 
<h1>OTHER WAYS TO REGISTER</h1>
 
 
<h2>PRINT THIS FORM AND MAIL OR FAX AS FOLLOWS:</h2>
 
 
 
<p><strong>Mail:</strong> Make checks payable to Ambulatory Surgery Foundation and mail to:
Ambulatory Surgery Foundation, 1012 Cameron St, Alexandria, VA 22314</p>
 
<p><strong>Fax:</strong> Fax registration form with credit card information to 703.836.2090</p>
 
<p><strong>Call:</strong> Call 703.836.5904 to register by phone</p>
 
<p><strong>Cancellation policy:</strong> Written cancellation requests must be received by May 5, 2009. Refunds are subject to a $100 processing fee.
Refunds will not be issued after this date.</p>
 
<p>Fax registration form with credit card information to 703.836.2090.</p>
 
<!--- close CFIF --->
</cfif> 
 
 
 
<p>If you have trouble sending the form, please print and fax to 703.836.2090.</p>
 
	
<p>This information will be used only in conjunction with Ambulatory Surgery Foundation and ASC Association business. We will not share your information with any other organizations.</p>
 
 
<hr />
 
<!--- TrustWave Seal ---> 
<p class="float-left-img"><script type='text/javascript' src='https://sealserver.trustwave.com/seal.js?style=normal'></script></p>
 
 
 <p>Transactions on this web page are secured by Trustwave. Click the Trustwave logo to the left to verify the security of this page.</p>
 
 
  <!--- include secure footer ---> 
<cfinclude template="SiteFooterSecure.cfm" />

Open in new window

LVL 3
Eric BourlandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gurpreet Singh RandhawaCEOCommented:
if you are using coldfusion 8, try below code:

i have not used bennadel captcha as yet!.

the below code will sort all your issues

create a file captcha.cfm and here are its contents
 
<cfset stringLength=7>
<cfset stringList="1,2,3,4,5,6,7,8,9,q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,&,*,%,$">
<cfset rndString="">
<cfloop from="1" to="#stringLength#" index="i">
<cfset rndNum=RandRange(1,listLen(stringList))>
<cfset rndString=rndString & listGetAt(stringList,rndNum)>
</cfloop>
<cfset rndHash=Hash(rndString)>
 
now on your loginpage or form page try something like this:
<username, password stuff over here>
<tr>
                <td><div align="right">Identify Yourself as Human?</div></td>
                <td><cfinput type="text" name="userInput" message="Provide Captcha-Text Value" tooltip="Provide Captcha Text" required="yes" class="textfield_effect" tabindex="3" value="#captcha#" maxlength=8>
                  &nbsp;<span class="orange">*</span>
                  <cfinput type="hidden" name="hashVal" value="#rndHash#">
                  &nbsp;</td>
              </tr>
 
now on check.cfm or whatever page.cfm you have do this:
 
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
</cfif>

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
i missed this stuff below written, put it after username,password fields

<tr>
                <td>&nbsp;</td>
                <td><cfinclude template="captcha.cfm">
                  <cfimage action="captcha" fontSize="24" fonts="Times New Roman" difficulty="medium" width="200" height="50" text="#rndString#">                </td>
              </tr>
0
Eric BourlandAuthor Commented:
myselfrandhawa,

Thank you! I will try this and get back to you.

All best,

Eric
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Eric BourlandAuthor Commented:
myselfrandhawa,

Thanks for your message and ideas. I have been working on this task for a few hours, and wanted to get as far as I could before I bugged you again. =)

I am having a little trouble.

I created a separate captcha.cfm file and put it in the same directory -- the root directory -- of my web site (ascassociation.org). I also implemented the code that you recommended. Now I am getting an error:

"Variable CAPTCHA is undefined."

You can see this error happening here: https://www.ascassociation.org/june2009.cfm

One part that confuses me is, I do not have a separate "check.cfm" page ... this page comprises a simple (if long) form that submits data to a SQL Server database. All of the form action is contained within one file: june2009.cfm.

So I am not sure where, exactly, to put:

<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
</cfif>

And I wonder if this is my problem.

I attach my code, below. The CAPTCHA code begins around line 358. Do you have any advice about this?

Thanks again for your help.

Eric

<cfif CGI.https is "Off">
<cflocation url="https://#cgi.server_name##cgi.script_name#?#cgi.query_string#" addtoken="no" />
</cfif>
 
 
  <!--- include secure header --->
<cfinclude template="/SiteHeaderSecure.cfm" />
 
<!--- When the user submits the Form, she sees the information that she sent --->
 
 
<cfif IsDefined('RegistrationID')>
 
   <!--- If RegistrationID is defined, display "success" message to user --->
 
 <h2>Thank you for submitting information to register for ASC Communications and the Ambulatory Surgery Foundation's Orthopedic Spine and Pain Management-Driven Conference, June 11 &#8211; 13 2009, at the Westin Hotel in Chicago, Illinois.</h2>
 
  <p>Your form is being processed.  Within two weeks, you will receive official confirmation and your receipt of payment by email from the Ambulatory Surgery Foundation with meeting details.  Please don't hesitate to call the registration office with questions at 703.836.5904 or email <a href="mailto:registration@ascassociation.org">registration@ascassociation.org</a>.</p>
 
  <p>Here is the information you sent:</p>
  
  <!--- set default values --->
  <cfparam name="RegistrationID" default="">
  <cfparam name="FirstName" default="">
  <cfparam name="LastName" default="">
  <cfparam name="Degree" default="">
  <cfparam name="Title" default="">
  <cfparam name="FacilityCompany" default="">
  <cfparam name="Address1" default="">
  <cfparam name="Address2" default="">
  <cfparam name="City" default="">
  <cfparam name="State" default="">
  <cfparam name="Zip" default="">
  <cfparam name="Phone" default="">
  <cfparam name="Fax" default="">
  <cfparam name="Email" default="">
  <cfparam name="WebSite" default="">
  <cfparam name="RNLicenseNumber" default="">
  <cfparam name="MainConference1stAttendeeAmountBefore5May625" default="">
  <cfparam name="MainConference2ndAttendeeAmountBefore5May575" default="">
  <cfparam name="MainConference3rdAttendeeAmountBefore5May525" default="">
  <cfparam name="MainConference4thAttendeeAmountBefore5May500" default="">
  <cfparam name="MainConference1stAttendeeAmountAfter5May725" default="">
  <cfparam name="MainConference2ndAttendeeAmountAfter5May675" default="">
  <cfparam name="MainConference3rdAttendeeAmountAfter5May625" default="">
  <cfparam name="MainConference4thAttendeeAmountAfter5May600" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountBefore5May825" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountBefore5May775" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountBefore5May725" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountBefore5May700" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountAfter5May925" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountAfter5May875" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountAfter5May825" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountAfter5May800" default="">
  <cfparam name="BeckersASCReviewSpecialDiscount" default="">
  <cfparam name="ASCReviewSubscriberDiscountOneHundred" default="">
  <cfparam name="TotalEnclosed" default="">
  <cfparam name="FORM.CheckEnclosed" default="">
  <cfparam name="CheckNumber" default="">
  <cfparam name="FORM.AuthorizeCharge" default="">
  <cfparam name="CreditCard" default="">
  <cfparam name="CreditCardNumber" default="">
  <cfparam name="ExpirationDate" default="">
  <cfparam name="PrintedCardHolderName" default="">
  <cfparam name="CreditCardZIPCode" default="">
  <cfparam name="CVV" default="">
  <cfparam name="DateCreated" default="">
 
 
<cfoutput>
<p><strong>RegistrationID:</strong> #RegistrationID#</p>
<CFIF FirstName IS NOT ""><p><strong>First Name:</strong> #FirstName#</p></CFIF>
<CFIF LastName IS NOT ""><p><strong>Last Name:</strong> #LastName#</p></CFIF>
<p><strong>Credential:</strong> #Degree#</p>
<p><strong>Title:</strong> #Title#</p>
<CFIF FacilityCompany IS NOT ""><p><strong>Facility / Company:</strong> #FacilityCompany#</p></CFIF>
<p><strong>Address Line 1:</strong> #Address1#</p>
<CFIF Address2 IS NOT ""><p><strong>Address Line 2:</strong> #Address2#</p></CFIF>
<p><strong>City:</strong> #City#</p>
<p><strong>State:</strong> #State#</p>
<p><strong>Zip:</strong> #Zip#</p>
<p><strong>Phone:</strong> #Phone#</p>
<CFIF Fax IS NOT ""><p><strong>Fax:</strong> #Fax#</p></CFIF>
<p><strong>Email:</strong> #Email#</p>
<CFIF WebSite IS NOT ""><p><strong>Web Site:</strong> #WebSite#</p></CFIF>
 
<CFIF RNLicenseNumber IS NOT ""><p><strong>RN License Number:</strong>  #RNLicenseNumber#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountBefore5May625 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference1stAttendeeAmountBefore5May625#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountBefore5May575 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference2ndAttendeeAmountBefore5May575#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountBefore5May525 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference3rdAttendeeAmountBefore5May525#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountBefore5May500 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference4thAttendeeAmountBefore5May500#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountAfter5May725 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainConference1stAttendeeAmountAfter5May725#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountAfter5May675 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference2ndAttendeeAmountAfter5May675#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountAfter5May625 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference3rdAttendeeAmountAfter5May625#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountAfter5May600 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainConference4thAttendeeAmountAfter5May600#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountBefore5May825 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountBefore5May825#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountBefore5May775 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountBefore5May775#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountBefore5May725 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountBefore5May725#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountBefore5May700 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountBefore5May700#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountAfter5May925 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountAfter5May925#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountAfter5May875 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountAfter5May875#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountAfter5May825 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountAfter5May825#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountAfter5May800 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountAfter5May800#</p></CFIF>
 
<CFIF BeckersASCReviewSpecialDiscount IS NOT ""><p><strong>Beckers ASC Review Special Discount:</strong> #BeckersASCReviewSpecialDiscount#</p></CFIF>
<CFIF ASCReviewSubscriberDiscountOneHundred IS NOT ""><p><strong>ASC Review Subscriber Discount ($50):</strong> #ASCReviewSubscriberDiscountOneHundred#</p></CFIF>
<CFIF TotalEnclosed IS NOT ""><p><strong>Total Enclosed:</strong> #TotalEnclosed#</p></CFIF>
<CFIF CheckEnclosed IS NOT ""><p><strong>Check Enclosed:</strong> #FORM.CheckEnclosed#</p></CFIF>
<CFIF CheckNumber IS NOT ""><p><strong>Check Number:</strong> #CheckNumber#</p></CFIF>
<CFIF AuthorizeCharge IS NOT ""><p><strong>Authorize Charge:</strong> #FORM.AuthorizeCharge#</p></CFIF>
<CFIF CreditCard IS NOT ""><p><strong>Credit Card:</strong> #CreditCard#</p></CFIF>
<CFIF CreditCardNumber IS NOT ""><p><strong>Credit Card Number:</strong> (Obscured for security)</p></CFIF>
<CFIF ExpirationDate IS NOT ""><p><strong>Expiration Date:</strong> (Obscured for security)</p></CFIF>
<CFIF PrintedCardHolderName IS NOT ""><p><strong>Printed Card Holder Name:</strong> #PrintedCardHolderName#</p></CFIF>
<CFIF CreditCardZIPCode IS NOT ""><p><strong>Credit Card ZIP Code:</strong> #CreditCardZIPCode#</p></CFIF>
<CFIF CVV IS NOT ""><p><strong>CVV:</strong> #CVV#</p></CFIF>
<p><strong>Date Submitted:</strong> #DateCreated#</p>
  
</cfoutput>
 
 
  
  <!--- If RegistrationID not defined, then display the form to the user ---> 
<cfelse>
 
 
 <!--- This is a form to populate conference registration information in table RegistrationEntries --->
 
<cfform action="/conference_data_insert.cfm" enctype="multipart/form-data">
 
  
  <h1>Orthopedic Spine and Pain Management-Driven Conference</h1>
 
 <h3>June 11 &#8211; 13 2009</h3>
 
<h3>Westin Hotel, Chicago, Illinois</h3>
 
  
<h2>REGISTRATION INFORMATION</h2>
 
	<table class="uvatable">
	<tr><td class="uvatable-left"><strong>First Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FirstName" /></td></tr>
	<tr><td class="uvatable-left"><strong>Last Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="LastName" /></td></tr>
		<tr><td class="uvatable-left"><strong>Credential:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Degree" /></td></tr>
		<tr><td class="uvatable-left"><strong>Title:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Title" /></td></tr>
	<tr><td class="uvatable-left"><strong>Facility / Company:</strong></td> 	<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FacilityCompany" /></td></tr>
	<tr><td class="uvatable-left"><strong>Address Line 1:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address1" /></td></tr>
		<tr><td class="uvatable-left"><strong>Address Line 2:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address2" /></td></tr>
	<tr><td class="uvatable-left"><strong>City:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="City" /></td></tr>
	<tr><td class="uvatable-left"><strong>State:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="State" /></td></tr>	
	<tr><td class="uvatable-left"><strong>ZIP:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="Zip" /></td></tr>
	<tr><td class="uvatable-left"><strong>Phone:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Phone" /></td></tr>
	<tr><td class="uvatable-left"><strong>Fax:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Fax" /></td></tr>
	<tr><td class="uvatable-left"><strong>Email:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Email" /></td></tr>
		<tr><td class="uvatable-left"><strong>Web Site:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="WebSite" /></td></tr>
 
<tr><td class="uvatable-left"><strong>RN License Number:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="RNLicenseNumber" /></td></tr>
 
	</table>
	
<h1>REGISTRATION FEES</h1>
 
 <p>Receive multiple registrant discount(s). The more people you send the greater discount you receive. The prices listed
below are per person. Simply submit a separate registration form for each attendee. Your registration includes all conference sessions, materials and meal functions.</p>
 
 
<h2>MAIN CONFERENCE ONLY</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td class="uvatable-left"><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
	<td class="uvatable-left"><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountBefore5May625" /></td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountAfter5May725" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$575</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountBefore5May575" /></td>
	<td class="uvatable-left">$675</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountAfter5May675" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$525</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountBefore5May525" /></td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountAfter5May625" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$500</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountBefore5May500" /></td>
	<td class="uvatable-left">$600</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountAfter5May600" /></td>
 
</tr>
</table>
 
<p><em>Ask about larger group discounts.</em></p>
 
 
<h2>MAIN CONFERENCE + PRE-CONFERENCE</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
	<td><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountBefore5May825" /></td>
	<td class="uvatable-left">$925</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountAfter5May925" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$775</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountBefore5May775" /></td>
	<td class="uvatable-left">$875</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountAfter5May875" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountBefore5May725" /></td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountAfter5May825" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$700</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountBefore5May700" /></td>
	<td class="uvatable-left">$800</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountAfter5May800" /></td>
 
</tr>
</table>
 
 
 
<h2>OPTIONAL</h2>
 
<table class="uvatable">
<tr>
	<td class="uvatable-left">Becker's ASC Review Special Discount Offer</td>
	<td class="uvatable-left">$100 (per year) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="BeckersASCReviewSpecialDiscount" /></td>
</tr>
<tr>
	<td class="uvatable-left">$100 Discount per attendee if paid ASC Association Member
or Becker's ASC Review Subscriber </td>
	<td class="uvatable-left">(- $100) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ASCReviewSubscriberDiscountOneHundred" /></td>
</tr>
<tr>
	<td></td>
	<td class="uvatable-left"><strong>TOTAL ENCLOSED</strong></td>
	<td><cfinput TYPE="text" SIZE="30" NAME="TotalEnclosed" /></td>
</tr>
</table>
 
 
 
 
<h1>PAYMENT INFORMATION</h1>
 
<p>To remit payment, you may print this form and mail it to Ambulatory Surgery Foundation with a check (see information below). Or, submit your credit card information, below. Credit card information is submitted through a secure connection, certified by SecureTrust.</p>
 
<p class="float-left"><cfinput type="Checkbox" name="CheckEnclosed"  class="border0" /> Enclosed is a check, payable to Ambulatory Surgery Foundation.</p> 
 
<p class="float-right">Check # <cfinput TYPE="text" SIZE="30" NAME="CheckNumber" /></p>
 
<div class="clear-both"></div>
 
<p class="float-left"><cfinput type="Checkbox" name="AuthorizeCharge" class="border0" /> I authorize Ambulatory Surgery Foundation to charge my:</p>
 
<p class="float-right">
<select name="CreditCard" class="ChicagoSelect red">
<option value="SelectCard">Select a Credit Card</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="AmericanExpress">American Express</option></select></p>
 
 
<div class="clear-both"></div>
 
 
<table class="uvatable">
<tr>
	<td>Credit Card Number:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardNumber" /></td>
	<td>Expiration Date:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ExpirationDate" /></td>
</tr>
<tr>
	<td>Printed Cardholder Name:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="PrintedCardHolderName" /></td>
	<td>Zip Code:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardZIPCode" /></td>
</tr>
<tr>
	<td>Signature (if printing and mailing):</td>
	<td></td>
	<td>CVV#/3-digit #:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CVV" /></td>
</tr>
</table>
 
 
 
 
 
  <!--- begin CAPTCHA --->
 
 
<div class="align-center">
 
<p><em>Kindly identify yourself as human, rather than a spam robot? Please enter the characters you see in the image:</em></p>
                
<cfinclude template="/captcha.cfm" />
<cfimage action="captcha" fontSize="24" fonts="Times New Roman" difficulty="medium" width="200" height="50" text="#rndString#">
 
<cfinput type="text" name="userInput" message="Provide Captcha-Text Value" tooltip="Provide Captcha Text" required="yes" class="textfield_effect" value="#captcha#" maxlength="8" />
                
<cfinput type="hidden" name="hashVal" value="#rndHash#">
 
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again.">
</cfif>
       
	</div>
    
    
  <!--- close CAPTCHA --->
 
 
		
 
  <!--- submit form --->
<p class="align-center"><cfinput type="submit" name="submit" value="Submit Registration" /></p>
 
 
 
  <!--- close CFFORM --->
</cfform>
 
 
 
<h1>OTHER WAYS TO REGISTER</h1>
 
 
<h2>PRINT THIS FORM AND MAIL OR FAX AS FOLLOWS:</h2>
 
 
 
<p><strong>Mail:</strong> Make checks payable to Ambulatory Surgery Foundation and mail to:
Ambulatory Surgery Foundation, 1012 Cameron St, Alexandria, VA 22314</p>
 
<p><strong>Fax:</strong> Fax registration form with credit card information to 703.836.2090</p>
 
<p><strong>Call:</strong> Call 703.836.5904 to register by phone</p>
 
<p><strong>Cancellation policy:</strong> Written cancellation requests must be received by May 5, 2009. Refunds are subject to a $100 processing fee.
Refunds will not be issued after this date.</p>
 
<p>Fax registration form with credit card information to 703.836.2090.</p>
 
<!--- close CFIF --->
</cfif> 
 
 
 
<p>If you have trouble sending the form, please print and fax to 703.836.2090.</p>
 
	
<p>This information will be used only in conjunction with Ambulatory Surgery Foundation and ASC Association business. We will not share your information with any other organizations.</p>
 
 
<hr />
 
<!--- TrustWave Seal ---> 
<p class="float-left-img"><script type='text/javascript' src='https://sealserver.trustwave.com/seal.js?style=normal'></script></p>
 
 
 <p>Transactions on this web page are secured by Trustwave. Click the Trustwave logo to the left to verify the security of this page.</p>
 
 
  <!--- include secure footer ---> 
<cfinclude template="SiteFooterSecure.cfm" />

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
First of all You are submitting your data to conference_data_insert.cfm

now you are including the <cfinclude template="/cfcatcha.cfm">

do one thing, remove the slash: <cfinclude template="cfcatcha.cfm">

now, in your cfinput tag underneath the <cfimage.. tag.

you have set the value="#captcha#">, but i cannot see it that you have defined it or not.

use <cfparam name="captcha" default=""> on the top.

See what happens.

for the checking on captcha
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again.">
</cfif>
 
You define in that page where you are submitting your data in this case it is:
 
conference_data_insert.cfm

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden"><input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
IGNORE THE LINE ABOVE, MY Browser Problem
0
Eric BourlandAuthor Commented:
myselfrandhawa,

>>>First of all You are submitting your data to conference_data_insert.cfm

Of course. =) Quite right.

I will work on this some more and get back to you. Thank you for the guidance.

Eric
0
Eric BourlandAuthor Commented:
myselfrandhawa,

This makes much more sense now. I am almost there:

https://www.ascassociation.org/june2009.cfm

However, I don't think the application is checking the CAPTCHA.

I added this to the top of conference_data_insert.cfm:

<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
</cfif>

But I am able to type in any characters I want in the "Provide Captcha Text" input field, and the form will process.

I attach my code below. I must be missing something. Any advice?

I really appreciate your time and patience.

Eric
june2009.cfm:
 
<!--- define default value for variable captcha --->
<cfparam name="captcha" default="" />
 
 
<!--- relocate http to https --->
<cfif CGI.https is "Off">
<cflocation url="https://#cgi.server_name##cgi.script_name#?#cgi.query_string#" addtoken="no" />
</cfif>
 
 
<!--- include secure header --->
<cfinclude template="/SiteHeaderSecure.cfm" />
 
<!--- When the user submits the Form, she sees the information that she sent --->
 
 
<cfif IsDefined('RegistrationID')>
 
   <!--- If RegistrationID is defined, display this "success" message to user --->
 
 <h2>Thank you for submitting information to register for ASC Communications and the Ambulatory Surgery Foundation's Orthopedic Spine and Pain Management-Driven Conference, June 11 &#8211; 13 2009, at the Westin Hotel in Chicago, Illinois.</h2>
 
  <p>Your form is being processed.  Within two weeks, you will receive official confirmation and your receipt of payment by email from the Ambulatory Surgery Foundation with meeting details.  Please don't hesitate to call the registration office with questions at 703.836.5904 or email <a href="mailto:registration@ascassociation.org">registration@ascassociation.org</a>.</p>
 
  <p>Here is the information you sent:</p>
  
  <!--- set default values --->
  <cfparam name="RegistrationID" default="">
  <cfparam name="FirstName" default="">
  <cfparam name="LastName" default="">
  <cfparam name="Degree" default="">
  <cfparam name="Title" default="">
  <cfparam name="FacilityCompany" default="">
  <cfparam name="Address1" default="">
  <cfparam name="Address2" default="">
  <cfparam name="City" default="">
  <cfparam name="State" default="">
  <cfparam name="Zip" default="">
  <cfparam name="Phone" default="">
  <cfparam name="Fax" default="">
  <cfparam name="Email" default="">
  <cfparam name="WebSite" default="">
  <cfparam name="RNLicenseNumber" default="">
  <cfparam name="MainConference1stAttendeeAmountBefore5May625" default="">
  <cfparam name="MainConference2ndAttendeeAmountBefore5May575" default="">
  <cfparam name="MainConference3rdAttendeeAmountBefore5May525" default="">
  <cfparam name="MainConference4thAttendeeAmountBefore5May500" default="">
  <cfparam name="MainConference1stAttendeeAmountAfter5May725" default="">
  <cfparam name="MainConference2ndAttendeeAmountAfter5May675" default="">
  <cfparam name="MainConference3rdAttendeeAmountAfter5May625" default="">
  <cfparam name="MainConference4thAttendeeAmountAfter5May600" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountBefore5May825" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountBefore5May775" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountBefore5May725" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountBefore5May700" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountAfter5May925" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountAfter5May875" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountAfter5May825" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountAfter5May800" default="">
  <cfparam name="BeckersASCReviewSpecialDiscount" default="">
  <cfparam name="ASCReviewSubscriberDiscountOneHundred" default="">
  <cfparam name="TotalEnclosed" default="">
  <cfparam name="FORM.CheckEnclosed" default="">
  <cfparam name="CheckNumber" default="">
  <cfparam name="FORM.AuthorizeCharge" default="">
  <cfparam name="CreditCard" default="">
  <cfparam name="CreditCardNumber" default="">
  <cfparam name="ExpirationDate" default="">
  <cfparam name="PrintedCardHolderName" default="">
  <cfparam name="CreditCardZIPCode" default="">
  <cfparam name="CVV" default="">
  <cfparam name="DateCreated" default="">
 
 
<cfoutput>
<p><strong>RegistrationID:</strong> #RegistrationID#</p>
<CFIF FirstName IS NOT ""><p><strong>First Name:</strong> #FirstName#</p></CFIF>
<CFIF LastName IS NOT ""><p><strong>Last Name:</strong> #LastName#</p></CFIF>
<p><strong>Credential:</strong> #Degree#</p>
<p><strong>Title:</strong> #Title#</p>
<CFIF FacilityCompany IS NOT ""><p><strong>Facility / Company:</strong> #FacilityCompany#</p></CFIF>
<p><strong>Address Line 1:</strong> #Address1#</p>
<CFIF Address2 IS NOT ""><p><strong>Address Line 2:</strong> #Address2#</p></CFIF>
<p><strong>City:</strong> #City#</p>
<p><strong>State:</strong> #State#</p>
<p><strong>Zip:</strong> #Zip#</p>
<p><strong>Phone:</strong> #Phone#</p>
<CFIF Fax IS NOT ""><p><strong>Fax:</strong> #Fax#</p></CFIF>
<p><strong>Email:</strong> #Email#</p>
<CFIF WebSite IS NOT ""><p><strong>Web Site:</strong> #WebSite#</p></CFIF>
 
<CFIF RNLicenseNumber IS NOT ""><p><strong>RN License Number:</strong>  #RNLicenseNumber#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountBefore5May625 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference1stAttendeeAmountBefore5May625#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountBefore5May575 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference2ndAttendeeAmountBefore5May575#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountBefore5May525 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference3rdAttendeeAmountBefore5May525#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountBefore5May500 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference4thAttendeeAmountBefore5May500#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountAfter5May725 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainConference1stAttendeeAmountAfter5May725#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountAfter5May675 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference2ndAttendeeAmountAfter5May675#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountAfter5May625 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference3rdAttendeeAmountAfter5May625#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountAfter5May600 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainConference4thAttendeeAmountAfter5May600#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountBefore5May825 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountBefore5May825#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountBefore5May775 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountBefore5May775#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountBefore5May725 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountBefore5May725#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountBefore5May700 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountBefore5May700#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountAfter5May925 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountAfter5May925#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountAfter5May875 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountAfter5May875#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountAfter5May825 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountAfter5May825#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountAfter5May800 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountAfter5May800#</p></CFIF>
 
<CFIF BeckersASCReviewSpecialDiscount IS NOT ""><p><strong>Beckers ASC Review Special Discount:</strong> #BeckersASCReviewSpecialDiscount#</p></CFIF>
<CFIF ASCReviewSubscriberDiscountOneHundred IS NOT ""><p><strong>ASC Review Subscriber Discount ($50):</strong> #ASCReviewSubscriberDiscountOneHundred#</p></CFIF>
<CFIF TotalEnclosed IS NOT ""><p><strong>Total Enclosed:</strong> #TotalEnclosed#</p></CFIF>
<CFIF CheckEnclosed IS NOT ""><p><strong>Check Enclosed:</strong> #FORM.CheckEnclosed#</p></CFIF>
<CFIF CheckNumber IS NOT ""><p><strong>Check Number:</strong> #CheckNumber#</p></CFIF>
<CFIF AuthorizeCharge IS NOT ""><p><strong>Authorize Charge:</strong> #FORM.AuthorizeCharge#</p></CFIF>
<CFIF CreditCard IS NOT ""><p><strong>Credit Card:</strong> #CreditCard#</p></CFIF>
<CFIF CreditCardNumber IS NOT ""><p><strong>Credit Card Number:</strong> (Obscured for security)</p></CFIF>
<CFIF ExpirationDate IS NOT ""><p><strong>Expiration Date:</strong> (Obscured for security)</p></CFIF>
<CFIF PrintedCardHolderName IS NOT ""><p><strong>Printed Card Holder Name:</strong> #PrintedCardHolderName#</p></CFIF>
<CFIF CreditCardZIPCode IS NOT ""><p><strong>Credit Card ZIP Code:</strong> #CreditCardZIPCode#</p></CFIF>
<CFIF CVV IS NOT ""><p><strong>CVV:</strong> #CVV#</p></CFIF>
<p><strong>Date Submitted:</strong> #DateCreated#</p>
  
</cfoutput>
 
 
  
  <!--- If RegistrationID not defined, then display the form to the user ---> 
<cfelse>
 
 
 <!--- This is a form to populate conference registration information in table RegistrationEntries --->
 
<cfform action="/conference_data_insert.cfm" enctype="multipart/form-data">
 
  
  <h1>Orthopedic Spine and Pain Management-Driven Conference</h1>
 
 <h3>June 11 &#8211; 13 2009</h3>
 
<h3>Westin Hotel, Chicago, Illinois</h3>
 
  
<h2>REGISTRATION INFORMATION</h2>
 
	<table class="uvatable">
	<tr><td class="uvatable-left"><strong>First Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FirstName" /></td></tr>
	<tr><td class="uvatable-left"><strong>Last Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="LastName" /></td></tr>
		<tr><td class="uvatable-left"><strong>Credential:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Degree" /></td></tr>
		<tr><td class="uvatable-left"><strong>Title:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Title" /></td></tr>
	<tr><td class="uvatable-left"><strong>Facility / Company:</strong></td> 	<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FacilityCompany" /></td></tr>
	<tr><td class="uvatable-left"><strong>Address Line 1:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address1" /></td></tr>
		<tr><td class="uvatable-left"><strong>Address Line 2:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address2" /></td></tr>
	<tr><td class="uvatable-left"><strong>City:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="City" /></td></tr>
	<tr><td class="uvatable-left"><strong>State:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="State" /></td></tr>	
	<tr><td class="uvatable-left"><strong>ZIP:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="Zip" /></td></tr>
	<tr><td class="uvatable-left"><strong>Phone:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Phone" /></td></tr>
	<tr><td class="uvatable-left"><strong>Fax:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Fax" /></td></tr>
	<tr><td class="uvatable-left"><strong>Email:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Email" /></td></tr>
		<tr><td class="uvatable-left"><strong>Web Site:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="WebSite" /></td></tr>
 
<tr><td class="uvatable-left"><strong>RN License Number:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="RNLicenseNumber" /></td></tr>
 
	</table>
	
<h1>REGISTRATION FEES</h1>
 
 <p>Receive multiple registrant discount(s). The more people you send the greater discount you receive. The prices listed
below are per person. Simply submit a separate registration form for each attendee. Your registration includes all conference sessions, materials and meal functions.</p>
 
 
<h2>MAIN CONFERENCE ONLY</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td class="uvatable-left"><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
	<td class="uvatable-left"><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountBefore5May625" /></td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountAfter5May725" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$575</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountBefore5May575" /></td>
	<td class="uvatable-left">$675</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountAfter5May675" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$525</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountBefore5May525" /></td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountAfter5May625" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$500</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountBefore5May500" /></td>
	<td class="uvatable-left">$600</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountAfter5May600" /></td>
 
</tr>
</table>
 
<p><em>Ask about larger group discounts.</em></p>
 
 
<h2>MAIN CONFERENCE + PRE-CONFERENCE</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
	<td><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountBefore5May825" /></td>
	<td class="uvatable-left">$925</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountAfter5May925" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$775</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountBefore5May775" /></td>
	<td class="uvatable-left">$875</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountAfter5May875" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountBefore5May725" /></td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountAfter5May825" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$700</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountBefore5May700" /></td>
	<td class="uvatable-left">$800</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountAfter5May800" /></td>
 
</tr>
</table>
 
 
 
<h2>OPTIONAL</h2>
 
<table class="uvatable">
<tr>
	<td class="uvatable-left">Becker's ASC Review Special Discount Offer</td>
	<td class="uvatable-left">$100 (per year) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="BeckersASCReviewSpecialDiscount" /></td>
</tr>
<tr>
	<td class="uvatable-left">$100 Discount per attendee if paid ASC Association Member
or Becker's ASC Review Subscriber </td>
	<td class="uvatable-left">(- $100) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ASCReviewSubscriberDiscountOneHundred" /></td>
</tr>
<tr>
	<td></td>
	<td class="uvatable-left"><strong>TOTAL ENCLOSED</strong></td>
	<td><cfinput TYPE="text" SIZE="30" NAME="TotalEnclosed" /></td>
</tr>
</table>
 
 
 
 
<h1>PAYMENT INFORMATION</h1>
 
<p>To remit payment, you may print this form and mail it to Ambulatory Surgery Foundation with a check (see information below). Or, submit your credit card information, below. Credit card information is submitted through a secure connection, certified by SecureTrust.</p>
 
<p class="float-left"><cfinput type="Checkbox" name="CheckEnclosed"  class="border0" /> Enclosed is a check, payable to Ambulatory Surgery Foundation.</p> 
 
<p class="float-right">Check # <cfinput TYPE="text" SIZE="30" NAME="CheckNumber" /></p>
 
<div class="clear-both"></div>
 
<p class="float-left"><cfinput type="Checkbox" name="AuthorizeCharge" class="border0" /> I authorize Ambulatory Surgery Foundation to charge my:</p>
 
<p class="float-right">
<select name="CreditCard" class="ChicagoSelect red">
<option value="SelectCard">Select a Credit Card</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="AmericanExpress">American Express</option></select></p>
 
 
<div class="clear-both"></div>
 
 
<table class="uvatable">
<tr>
	<td>Credit Card Number:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardNumber" /></td>
	<td>Expiration Date:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ExpirationDate" /></td>
</tr>
<tr>
	<td>Printed Cardholder Name:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="PrintedCardHolderName" /></td>
	<td>Zip Code:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardZIPCode" /></td>
</tr>
<tr>
	<td>Signature (if printing and mailing):</td>
	<td></td>
	<td>CVV#/3-digit #:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CVV" /></td>
</tr>
</table>
 
<!--- begin CAPTCHA --->
 
<div class="align-center">
 
<p><em>Kindly identify yourself as human rather than a spam robot? Please enter the characters you see in the image:</em></p>
                
<cfinclude template="captcha.cfm" />
<cfimage action="captcha" fontSize="24" fonts="Times New Roman" difficulty="medium" width="200" height="50" text="#rndString#">
 
<cfinput type="text" name="userInput" message="Provide Captcha-Text Value" tooltip="Provide Captcha Text" required="yes" class="textfield_effect" value="#captcha#" maxlength="8" />
                
<cfinput type="hidden" name="hashVal" value="#rndHash#">
      
	</div>
        
  <!--- end CAPTCHA --->
 
 
		
 
  <!--- submit form --->
<p class="align-center"><cfinput type="submit" name="submit" value="Submit Registration" /></p>
 
 
 
  <!--- close CFFORM --->
</cfform>
 
 
 
<h1>OTHER WAYS TO REGISTER</h1>
 
 
<h2>PRINT THIS FORM AND MAIL OR FAX AS FOLLOWS:</h2>
 
 
 
<p><strong>Mail:</strong> Make checks payable to Ambulatory Surgery Foundation and mail to:
Ambulatory Surgery Foundation, 1012 Cameron St, Alexandria, VA 22314</p>
 
<p><strong>Fax:</strong> Fax registration form with credit card information to 703.836.2090</p>
 
<p><strong>Call:</strong> Call 703.836.5904 to register by phone</p>
 
<p><strong>Cancellation policy:</strong> Written cancellation requests must be received by May 5, 2009. Refunds are subject to a $100 processing fee.
Refunds will not be issued after this date.</p>
 
<p>Fax registration form with credit card information to 703.836.2090.</p>
 
<!--- close CFIF --->
</cfif> 
 
 
 
<p>If you have trouble sending the form, please print and fax to 703.836.2090.</p>
 
	
<p>This information will be used only in conjunction with Ambulatory Surgery Foundation and ASC Association business. We will not share your information with any other organizations.</p>
 
 
<hr />
 
<!--- TrustWave Seal ---> 
<p class="float-left-img"><script type='text/javascript' src='https://sealserver.trustwave.com/seal.js?style=normal'></script></p>
 
 
 <p>Transactions on this web page are secured by Trustwave. Click the Trustwave logo to the left to verify the security of this page.</p>
 
 
  <!--- include secure footer ---> 
<cfinclude template="SiteFooterSecure.cfm" />
 
 
 
conference_data_insert.cfm:
 
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
</cfif>
 
<cfif isDefined('FORM.CheckEnclosed')>
<!--- checkbox has been checked and is present in post data --->
<cfset CheckEnclosed = 1>
<cfelse>
<cfset CheckEnclosed = 0>
<!--- checkbox not checked and not present --->
</cfif>
 
<cfif isDefined('FORM.AuthorizeCharge')>
<!--- checkbox has been checked and is present in post data --->
<cfset AuthorizeCharge = 1>
<cfelse>
<cfset AuthorizeCharge = 0>
<!--- checkbox not checked and not present --->
</cfif>
 
<!--- Insert values into database columns --->
<cfquery datasource="ebwebwork" dbname="ascassociation" name="createRegistration">
	INSERT INTO RegistrationEntries (
		FirstName,
		LastName,
		Degree,
		Title,
		FacilityCompany,
		Address1,
		Address2,
		City,
		State,
		Zip,
		Phone,
		Fax,
		Email,
		WebSite,
		RNLicenseNumber,
		MainConference1stAttendeeAmountBefore5May625,
		MainConference2ndAttendeeAmountBefore5May575,
		MainConference3rdAttendeeAmountBefore5May525,
		MainConference4thAttendeeAmountBefore5May500,
		MainConference1stAttendeeAmountAfter5May725,
		MainConference2ndAttendeeAmountAfter5May675,
		MainConference3rdAttendeeAmountAfter5May625,
		MainConference4thAttendeeAmountAfter5May600,
		MainandPreConference1stAttendeeAmountBefore5May825,
		MainandPreConference2ndAttendeeAmountBefore5May775,
		MainandPreConference3rdAttendeeAmountBefore5May725,
		MainandPreConference4thAttendeeAmountBefore5May700,
		MainandPreConference1stAttendeeAmountAfter5May925,
		MainandPreConference2ndAttendeeAmountAfter5May875,
		MainandPreConference3rdAttendeeAmountAfter5May825,
		MainandPreConference4thAttendeeAmountAfter5May800,
		BeckersASCReviewSpecialDiscount,
		ASCReviewSubscriberDiscountOneHundred,
		TotalEnclosed,
		CheckEnclosed,
		CheckNumber,
		AuthorizeCharge,
		CreditCard,
		CreditCardNumber,
		ExpirationDate,
		PrintedCardHolderName,
		CreditCardZIPCode,
		CVV,
		DateCreated)
	VALUES(
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#FirstName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#LastName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Degree#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Title#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#FacilityCompany#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Address1#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Address2#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#City#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#State#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Zip#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Phone#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Fax#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Email#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#WebSite#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#RNLicenseNumber#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference1stAttendeeAmountBefore5May625#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference2ndAttendeeAmountBefore5May575#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference3rdAttendeeAmountBefore5May525#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference4thAttendeeAmountBefore5May500#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference1stAttendeeAmountAfter5May725#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference2ndAttendeeAmountAfter5May675#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference3rdAttendeeAmountAfter5May625#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference4thAttendeeAmountAfter5May600#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference1stAttendeeAmountBefore5May825#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference2ndAttendeeAmountBefore5May775#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference3rdAttendeeAmountBefore5May725#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference4thAttendeeAmountBefore5May700#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference1stAttendeeAmountAfter5May925#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference2ndAttendeeAmountAfter5May875#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference3rdAttendeeAmountAfter5May825#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference4thAttendeeAmountAfter5May800#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#BeckersASCReviewSpecialDiscount#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#ASCReviewSubscriberDiscountOneHundred#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#TotalEnclosed#">,
		<cfqueryparam cfsqltype="cf_sql_bit" value="#CheckEnclosed#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CheckNumber#">,
		<cfqueryparam cfsqltype="cf_sql_bit" value="#AuthorizeCharge#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCard#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCardNumber#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#ExpirationDate#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#PrintedCardHolderName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCardZIPCode#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CVV#">,
		<cfqueryparam cfsqltype="cf_sql_timestamp" value="#now()#">);
	SELECT scope_identity() AS ident
</cfquery>
		  
<!--- pass info back to previous page --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
<html>
<head>
	<title>Registration Submitted</title>
</head>
 
<body onLoad="document.form.submit();">
 
 <cfoutput>
 
<form name="form" method="post" action="june2009.cfm">
 
<!--- set value from newly created RegistrationID --->
<input type="hidden" name="RegistrationID" value="#createRegistration.ident#">
<!--- set rest of values from submitted form --->
<input type="hidden" name="FirstName" value="#FORM.FirstName#">
<input type="hidden" name="LastName" value="#FORM.LastName#">
<input type="hidden" name="Degree" value="#FORM.Degree#">
<input type="hidden" name="Title" value="#FORM.Title#">
<input type="hidden" name="FacilityCompany" value="#FORM.FacilityCompany#">
<input type="hidden" name="Address1" value="#FORM.Address1#">
<input type="hidden" name="Address2" value="#FORM.Address2#">
<input type="hidden" name="City" value="#FORM.City#">
<input type="hidden" name="State" value="#FORM.State#">
<input type="hidden" name="Zip" value="#FORM.Zip#">
<input type="hidden" name="Phone" value="#FORM.Phone#">
<input type="hidden" name="Fax" value="#FORM.Fax#">
<input type="hidden" name="Email" value="#FORM.Email#">
<input type="hidden" name="WebSite" value="#FORM.WebSite#">
<input type="hidden" name="RNLicenseNumber" value="#FORM.RNLicenseNumber#">
<input type="hidden" name="MainConference1stAttendeeAmountBefore5May625" value="#FORM.MainConference1stAttendeeAmountBefore5May625#">
<input type="hidden" name="MainConference2ndAttendeeAmountBefore5May575" value="#FORM.MainConference2ndAttendeeAmountBefore5May575#">
<input type="hidden" name="MainConference3rdAttendeeAmountBefore5May525" value="#FORM.MainConference3rdAttendeeAmountBefore5May525#">
<input type="hidden" name="MainConference4thAttendeeAmountBefore5May500" value="#FORM.MainConference4thAttendeeAmountBefore5May500#">
<input type="hidden" name="MainConference1stAttendeeAmountAfter5May725" value="#FORM.MainConference1stAttendeeAmountAfter5May725#">
<input type="hidden" name="MainConference2ndAttendeeAmountAfter5May675" value="#FORM.MainConference2ndAttendeeAmountAfter5May675#">
<input type="hidden" name="MainConference3rdAttendeeAmountAfter5May625" value="#FORM.MainConference3rdAttendeeAmountAfter5May625#">
<input type="hidden" name="MainConference4thAttendeeAmountAfter5May600" value="#FORM.MainConference4thAttendeeAmountAfter5May600#">
<input type="hidden" name="MainandPreConference1stAttendeeAmountBefore5May825" value="#FORM.MainandPreConference1stAttendeeAmountBefore5May825#">
<input type="hidden" name="MainandPreConference2ndAttendeeAmountBefore5May775" value="#FORM.MainandPreConference2ndAttendeeAmountBefore5May775#">
<input type="hidden" name="MainandPreConference3rdAttendeeAmountBefore5May725" value="#FORM.MainandPreConference3rdAttendeeAmountBefore5May725#">
<input type="hidden" name="MainandPreConference4thAttendeeAmountBefore5May700" value="#FORM.MainandPreConference4thAttendeeAmountBefore5May700#">
<input type="hidden" name="MainandPreConference1stAttendeeAmountAfter5May975" value="#FORM.MainandPreConference1stAttendeeAmountAfter5May925#">
<input type="hidden" name="MainandPreConference2ndAttendeeAmountAfter5May875" value="#FORM.MainandPreConference2ndAttendeeAmountAfter5May875#">
<input type="hidden" name="MainandPreConference3rdAttendeeAmountAfter5May825" value="#FORM.MainandPreConference3rdAttendeeAmountAfter5May825#">
<input type="hidden" name="MainandPreConference4thAttendeeAmountAfter5May800" value="#FORM.MainandPreConference4thAttendeeAmountAfter5May800#">
<input type="hidden" name="BeckersASCReviewSpecialDiscount" value="#FORM.BeckersASCReviewSpecialDiscount#">
<input type="hidden" name="ASCReviewSubscriberDiscountOneHundred" value="#FORM.ASCReviewSubscriberDiscountOneHundred#">
<input type="hidden" name="TotalEnclosed" value="#FORM.TotalEnclosed#">
 
 
<cfif isdefined("form.CheckEnclosed")>
<input type="hidden" name="CheckEnclosed" value="#FORM.CheckEnclosed#">
<cfelse>
<input type="hidden" name="CheckEnclosed" value="0">
</cfif>
 
 
<input type="hidden" name="CheckNumber" value="#FORM.CheckNumber#">
 
<cfif isdefined("form.AuthorizeCharge")>
<input type="hidden" name="AuthorizeCharge" value="#FORM.AuthorizeCharge#">
<cfelse>
<input type="hidden" name="AuthorizeCharge" value="0">
</cfif>
 
 
<input type="hidden" name="CreditCard" value="#FORM.CreditCard#">
<input type="hidden" name="CreditCardNumber" value="#FORM.CreditCardNumber#">
<input type="hidden" name="ExpirationDate" value="#FORM.ExpirationDate#">
<input type="hidden" name="PrintedCardHolderName" value="#FORM.PrintedCardHolderName#">
<input type="hidden" name="CreditCardZIPCode" value="#FORM.CreditCardZIPCode#">
<input type="hidden" name="CVV" value="#FORM.CVV#">
<input type="hidden" name="DateCreated" value="#DateFormat(now(), "mm/dd/yyyy")#">
 
</form>
 </cfoutput>
</body>
</html>

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">

</cfif>

instead of this if you relocate back to page like:

<cflocation="#chi.http_referer#&msg=#msg#" addtoken="false">

instead of <cfset msg = "Invalid capcta, try again">

Open in new window

<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
<cflocation="#chi.http_referer#&msg=#msg#" addtoken="false">
</cfif>
 
check how it goes

Open in new window

0
Eric BourlandAuthor Commented:
Got it chief. Working on this now. EB
0
Eric BourlandAuthor Commented:
I don't think ColdFusion likes the cflocation. I get an error (see code snippet).

 Invalid CFML construct found on line 3 at column 12.
ColdFusion was looking at the following text:
 
=
 
The CFML compiler was processing:
 
    * A cflocation tag beginning on line 3, column 2.
    * A cflocation tag beginning on line 3, column 2.
 
 
The error occurred in D:\websites\ascassociation.org\conference_data_insert.cfm: line 3
 
1 : <cfif #form.hashval# neq Hash(#form.userInput#)>
2 : <cfset msg = "Invalid Captcha, try again">
3 : <cflocation="#chi.http_referer#&msg=#msg#" addtoken="false">
4 : </cfif>
5 : 

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
My mistake, you should type:


<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
#cgi.http_referer#
 
instead of
 
#chi.http_referer#

Open in new window

0
Eric BourlandAuthor Commented:
I was wondering about that!

I did change "chi" to "cgi". I also changed "referer" to "referrer". So now my code looks like the snippet below.

I am still getting a pesky invalid construct message on line 3:

https://www.ascassociation.org/june2009.cfm

... whether or not I enter correct CAPTCHA characters.
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
<cflocation="#cgi.http_referrer#&msg=#msg#" addtoken="false">
</cfif>

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
Yes, I agree. My Mistake again

try again below:
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
<cflocation="#cgi.http_referrer#?msg=#msg#" addtoken="false">
</cfif>

Open in new window

0
Eric BourlandAuthor Commented:
I was wondering about that ampersand too. =) OK, I changed ampersand to query question mark:

<cfif #form.hashval# neq Hash(#form.userInput#)>
<cfset msg = "Invalid Captcha, try again">
<cflocation="#cgi.http_referrer#?msg=#msg#" addtoken="false">
</cfif>

.... trying it out. Darn, it's still not liking the cflocation.

Do you think the cflocation is going to work?

Again, I really appreciate your patient help.

Eric
The error I get:
 
 Invalid CFML construct found on line 3 at column 12.
ColdFusion was looking at the following text:
 
=
 
The CFML compiler was processing:
 
    * A cflocation tag beginning on line 3, column 2.
    * A cflocation tag beginning on line 3, column 2.
 
 
The error occurred in D:\websites\ascassociation.org\conference_data_insert.cfm: line 3
 
1 : <cfif #form.hashval# neq Hash(#form.userInput#)>
2 : <cfset msg = "Invalid Captcha, try again">
3 : <cflocation="#cgi.http_referrer#?msg=#msg#" addtoken="false">
4 : </cfif>
5 : 

Open in new window

0
Gurpreet Singh RandhawaCEOCommented:
wondering what the cause is. ok i am checking, have some patience, let me what is going on here

okay i am posting my code snippent whih i had in my many websites, try what happens
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
<cfif #form.hashval# neq Hash(#form.userInput#)>
  <cfset invalid = 3>
  <cflocation="june2009.cfm?error=#invalid#">
  <cfelse>
  <insert material goes here
  </cfif>
 
in the june2009.cfm.
 
do this to see error message:
 
<cfif isdefined('error')><cfif error is 3>error! captcha wrong</cfif></cfif>

Open in new window

0
Eric BourlandAuthor Commented:
Got it. OK, I tried that. I am still getting the error:

 Invalid CFML construct found on line 3 at column 14.
ColdFusion was looking at the following text:

=

The CFML compiler was processing:

    * A cflocation tag beginning on line 3, column 4.
    * A cflocation tag beginning on line 3, column 4.

 
The error occurred in D:\websites\ascassociation.org\conference_data_insert.cfm: line 3

1 : <cfif #form.hashval# neq Hash(#form.userInput#)>
2 :   <cfset invalid = 3>
3 :   <cflocation="june2009.cfm?error=#invalid#">
4 :   <cfelse>
5 :   <insert material goes here


I wonder if something is strange about the rest of the markup in either june2009.cfm or conference_data_insert.cfm.

I put:

<cfif isdefined('error')><cfif error is 3>error! captcha wrong</cfif></cfif>


at the top of june2009.cfm.

I put:

<cfif #form.hashval# neq Hash(#form.userInput#)>
  <cfset invalid = 3>
  <cflocation="june2009.cfm?error=#invalid#">
  <cfelse>
  <insert material goes here
  </cfif>


at the top of conference_data_insert.cfm.

Is the syntax   <insert material goes here correct?

Thanks again!

Eric
0
Gurpreet Singh RandhawaCEOCommented:
okay something really going wrong:

 i pick you code and do and see what is going here:


<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
june2009.cfm:
 
<!--- define default value for variable captcha --->
<cfparam name="captcha" default="" />
 
 
<!--- relocate http to https --->
<cfif CGI.https is "Off">
<cflocation url="https://#cgi.server_name##cgi.script_name#?#cgi.query_string#" addtoken="no" />
</cfif>
 
 
<!--- include secure header --->
<cfinclude template="/SiteHeaderSecure.cfm" />
 
<!--- When the user submits the Form, she sees the information that she sent --->
 
 
<cfif IsDefined('RegistrationID')>
 
   <!--- If RegistrationID is defined, display this "success" message to user --->
 
 <h2>Thank you for submitting information to register for ASC Communications and the Ambulatory Surgery Foundation's Orthopedic Spine and Pain Management-Driven Conference, June 11 &#8211; 13 2009, at the Westin Hotel in Chicago, Illinois.</h2>
 
  <p>Your form is being processed.  Within two weeks, you will receive official confirmation and your receipt of payment by email from the Ambulatory Surgery Foundation with meeting details.  Please don't hesitate to call the registration office with questions at 703.836.5904 or email <a href="mailto:registration@ascassociation.org">registration@ascassociation.org</a>.</p>
 
  <p>Here is the information you sent:</p>
  
  <!--- set default values --->
  <cfparam name="RegistrationID" default="">
  <cfparam name="FirstName" default="">
  <cfparam name="LastName" default="">
  <cfparam name="Degree" default="">
  <cfparam name="Title" default="">
  <cfparam name="FacilityCompany" default="">
  <cfparam name="Address1" default="">
  <cfparam name="Address2" default="">
  <cfparam name="City" default="">
  <cfparam name="State" default="">
  <cfparam name="Zip" default="">
  <cfparam name="Phone" default="">
  <cfparam name="Fax" default="">
  <cfparam name="Email" default="">
  <cfparam name="WebSite" default="">
  <cfparam name="RNLicenseNumber" default="">
  <cfparam name="MainConference1stAttendeeAmountBefore5May625" default="">
  <cfparam name="MainConference2ndAttendeeAmountBefore5May575" default="">
  <cfparam name="MainConference3rdAttendeeAmountBefore5May525" default="">
  <cfparam name="MainConference4thAttendeeAmountBefore5May500" default="">
  <cfparam name="MainConference1stAttendeeAmountAfter5May725" default="">
  <cfparam name="MainConference2ndAttendeeAmountAfter5May675" default="">
  <cfparam name="MainConference3rdAttendeeAmountAfter5May625" default="">
  <cfparam name="MainConference4thAttendeeAmountAfter5May600" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountBefore5May825" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountBefore5May775" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountBefore5May725" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountBefore5May700" default="">
  <cfparam name="MainandPreConference1stAttendeeAmountAfter5May925" default="">
  <cfparam name="MainandPreConference2ndAttendeeAmountAfter5May875" default="">
  <cfparam name="MainandPreConference3rdAttendeeAmountAfter5May825" default="">
  <cfparam name="MainandPreConference4thAttendeeAmountAfter5May800" default="">
  <cfparam name="BeckersASCReviewSpecialDiscount" default="">
  <cfparam name="ASCReviewSubscriberDiscountOneHundred" default="">
  <cfparam name="TotalEnclosed" default="">
  <cfparam name="FORM.CheckEnclosed" default="">
  <cfparam name="CheckNumber" default="">
  <cfparam name="FORM.AuthorizeCharge" default="">
  <cfparam name="CreditCard" default="">
  <cfparam name="CreditCardNumber" default="">
  <cfparam name="ExpirationDate" default="">
  <cfparam name="PrintedCardHolderName" default="">
  <cfparam name="CreditCardZIPCode" default="">
  <cfparam name="CVV" default="">
  <cfparam name="DateCreated" default="">
 
 
<cfoutput>
<cfif isdefined('error')><cfif error is 3>error! captcha wrong</cfif></cfif>
<p><strong>RegistrationID:</strong> #RegistrationID#</p>
<CFIF FirstName IS NOT ""><p><strong>First Name:</strong> #FirstName#</p></CFIF>
<CFIF LastName IS NOT ""><p><strong>Last Name:</strong> #LastName#</p></CFIF>
<p><strong>Credential:</strong> #Degree#</p>
<p><strong>Title:</strong> #Title#</p>
<CFIF FacilityCompany IS NOT ""><p><strong>Facility / Company:</strong> #FacilityCompany#</p></CFIF>
<p><strong>Address Line 1:</strong> #Address1#</p>
<CFIF Address2 IS NOT ""><p><strong>Address Line 2:</strong> #Address2#</p></CFIF>
<p><strong>City:</strong> #City#</p>
<p><strong>State:</strong> #State#</p>
<p><strong>Zip:</strong> #Zip#</p>
<p><strong>Phone:</strong> #Phone#</p>
<CFIF Fax IS NOT ""><p><strong>Fax:</strong> #Fax#</p></CFIF>
<p><strong>Email:</strong> #Email#</p>
<CFIF WebSite IS NOT ""><p><strong>Web Site:</strong> #WebSite#</p></CFIF>
 
<CFIF RNLicenseNumber IS NOT ""><p><strong>RN License Number:</strong>  #RNLicenseNumber#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountBefore5May625 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference1stAttendeeAmountBefore5May625#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountBefore5May575 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference2ndAttendeeAmountBefore5May575#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountBefore5May525 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference3rdAttendeeAmountBefore5May525#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountBefore5May500 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainConference4thAttendeeAmountBefore5May500#</p></CFIF>
 
<CFIF MainConference1stAttendeeAmountAfter5May725 IS NOT ""><p><strong>Main Conference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainConference1stAttendeeAmountAfter5May725#</p></CFIF>
 
<CFIF MainConference2ndAttendeeAmountAfter5May675 IS NOT ""><p><strong>Main Conference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference2ndAttendeeAmountAfter5May675#</p></CFIF>
 
<CFIF MainConference3rdAttendeeAmountAfter5May625 IS NOT ""><p><strong>Main Conference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainConference3rdAttendeeAmountAfter5May625#</p></CFIF>
 
<CFIF MainConference4thAttendeeAmountAfter5May600 IS NOT ""><p><strong>Main Conference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainConference4thAttendeeAmountAfter5May600#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountBefore5May825 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountBefore5May825#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountBefore5May775 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountBefore5May775#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountBefore5May725 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountBefore5May725#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountBefore5May700 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted Before 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountBefore5May700#</p></CFIF>
 
<CFIF MainandPreConference1stAttendeeAmountAfter5May925 IS NOT ""><p><strong>Main and PreConference 1st Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference1stAttendeeAmountAfter5May925#</p></CFIF>
 
<CFIF MainandPreConference2ndAttendeeAmountAfter5May875 IS NOT ""><p><strong>Main and PreConference 2nd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference2ndAttendeeAmountAfter5May875#</p></CFIF>
 
<CFIF MainandPreConference3rdAttendeeAmountAfter5May825 IS NOT ""><p><strong>Main and PreConference 3rd Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference3rdAttendeeAmountAfter5May825#</p></CFIF>
 
<CFIF MainandPreConference4thAttendeeAmountAfter5May800 IS NOT ""><p><strong>Main and PreConference 4th Attendee Amount Remitted After 5 May 2009:</strong> #MainandPreConference4thAttendeeAmountAfter5May800#</p></CFIF>
 
<CFIF BeckersASCReviewSpecialDiscount IS NOT ""><p><strong>Beckers ASC Review Special Discount:</strong> #BeckersASCReviewSpecialDiscount#</p></CFIF>
<CFIF ASCReviewSubscriberDiscountOneHundred IS NOT ""><p><strong>ASC Review Subscriber Discount ($50):</strong> #ASCReviewSubscriberDiscountOneHundred#</p></CFIF>
<CFIF TotalEnclosed IS NOT ""><p><strong>Total Enclosed:</strong> #TotalEnclosed#</p></CFIF>
<CFIF CheckEnclosed IS NOT ""><p><strong>Check Enclosed:</strong> #FORM.CheckEnclosed#</p></CFIF>
<CFIF CheckNumber IS NOT ""><p><strong>Check Number:</strong> #CheckNumber#</p></CFIF>
<CFIF AuthorizeCharge IS NOT ""><p><strong>Authorize Charge:</strong> #FORM.AuthorizeCharge#</p></CFIF>
<CFIF CreditCard IS NOT ""><p><strong>Credit Card:</strong> #CreditCard#</p></CFIF>
<CFIF CreditCardNumber IS NOT ""><p><strong>Credit Card Number:</strong> (Obscured for security)</p></CFIF>
<CFIF ExpirationDate IS NOT ""><p><strong>Expiration Date:</strong> (Obscured for security)</p></CFIF>
<CFIF PrintedCardHolderName IS NOT ""><p><strong>Printed Card Holder Name:</strong> #PrintedCardHolderName#</p></CFIF>
<CFIF CreditCardZIPCode IS NOT ""><p><strong>Credit Card ZIP Code:</strong> #CreditCardZIPCode#</p></CFIF>
<CFIF CVV IS NOT ""><p><strong>CVV:</strong> #CVV#</p></CFIF>
<p><strong>Date Submitted:</strong> #DateCreated#</p>
  
</cfoutput>
 
 
  
  <!--- If RegistrationID not defined, then display the form to the user ---> 
<cfelse>
 
 
 <!--- This is a form to populate conference registration information in table RegistrationEntries --->
 
<cfform action="/conference_data_insert.cfm" enctype="multipart/form-data">
 
  
  <h1>Orthopedic Spine and Pain Management-Driven Conference</h1>
 
 <h3>June 11 &#8211; 13 2009</h3>
 
<h3>Westin Hotel, Chicago, Illinois</h3>
 
  
<h2>REGISTRATION INFORMATION</h2>
 
	<table class="uvatable">
	<tr><td class="uvatable-left"><strong>First Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FirstName" /></td></tr>
	<tr><td class="uvatable-left"><strong>Last Name:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="LastName" /></td></tr>
		<tr><td class="uvatable-left"><strong>Credential:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Degree" /></td></tr>
		<tr><td class="uvatable-left"><strong>Title:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Title" /></td></tr>
	<tr><td class="uvatable-left"><strong>Facility / Company:</strong></td> 	<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="FacilityCompany" /></td></tr>
	<tr><td class="uvatable-left"><strong>Address Line 1:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address1" /></td></tr>
		<tr><td class="uvatable-left"><strong>Address Line 2:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Address2" /></td></tr>
	<tr><td class="uvatable-left"><strong>City:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="City" /></td></tr>
	<tr><td class="uvatable-left"><strong>State:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="State" /></td></tr>	
	<tr><td class="uvatable-left"><strong>ZIP:</strong></td> 		<td class="uvatable-right"><cfinput TYPE="text" SIZE="5" NAME="Zip" /></td></tr>
	<tr><td class="uvatable-left"><strong>Phone:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Phone" /></td></tr>
	<tr><td class="uvatable-left"><strong>Fax:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="20" NAME="Fax" /></td></tr>
	<tr><td class="uvatable-left"><strong>Email:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="Email" /></td></tr>
		<tr><td class="uvatable-left"><strong>Web Site:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="WebSite" /></td></tr>
 
<tr><td class="uvatable-left"><strong>RN License Number:</strong></td>		<td class="uvatable-right"><cfinput TYPE="text" SIZE="30" NAME="RNLicenseNumber" /></td></tr>
 
	</table>
	
<h1>REGISTRATION FEES</h1>
 
 <p>Receive multiple registrant discount(s). The more people you send the greater discount you receive. The prices listed
below are per person. Simply submit a separate registration form for each attendee. Your registration includes all conference sessions, materials and meal functions.</p>
 
 
<h2>MAIN CONFERENCE ONLY</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td class="uvatable-left"><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
	<td class="uvatable-left"><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td class="uvatable-left"><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountBefore5May625" /></td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference1stAttendeeAmountAfter5May725" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$575</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountBefore5May575" /></td>
	<td class="uvatable-left">$675</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference2ndAttendeeAmountAfter5May675" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$525</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountBefore5May525" /></td>
	<td class="uvatable-left">$625</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference3rdAttendeeAmountAfter5May625" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$500</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountBefore5May500" /></td>
	<td class="uvatable-left">$600</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainConference4thAttendeeAmountAfter5May600" /></td>
 
</tr>
</table>
 
<p><em>Ask about larger group discounts.</em></p>
 
 
<h2>MAIN CONFERENCE + PRE-CONFERENCE</h2>
 
	<table class="uvatable">
<tr>
	<td></td>
	<td><strong>FEES<br />(Before 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
	<td><strong>FEES<br />(After 5/5/2009)</strong></td>
	<td><strong>ENTER AMOUNT</strong></td>
 
</tr>
<tr>
	<td class="uvatable-left">1st Attendee</td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountBefore5May825" /></td>
	<td class="uvatable-left">$925</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference1stAttendeeAmountAfter5May925" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">2nd Attendee</td>
	<td class="uvatable-left">$775</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountBefore5May775" /></td>
	<td class="uvatable-left">$875</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference2ndAttendeeAmountAfter5May875" /></td>
</tr>
<tr>
	<td class="uvatable-left">3rd Attendee</td>
	<td class="uvatable-left">$725</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountBefore5May725" /></td>
	<td class="uvatable-left">$825</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference3rdAttendeeAmountAfter5May825" /></td>
 
</tr>
<tr>
	<td class="uvatable-left">4th Attendee or more</td>
	<td class="uvatable-left">$700</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountBefore5May700" /></td>
	<td class="uvatable-left">$800</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="MainandPreConference4thAttendeeAmountAfter5May800" /></td>
 
</tr>
</table>
 
 
 
<h2>OPTIONAL</h2>
 
<table class="uvatable">
<tr>
	<td class="uvatable-left">Becker's ASC Review Special Discount Offer</td>
	<td class="uvatable-left">$100 (per year) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="BeckersASCReviewSpecialDiscount" /></td>
</tr>
<tr>
	<td class="uvatable-left">$100 Discount per attendee if paid ASC Association Member
or Becker's ASC Review Subscriber </td>
	<td class="uvatable-left">(- $100) </td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ASCReviewSubscriberDiscountOneHundred" /></td>
</tr>
<tr>
	<td></td>
	<td class="uvatable-left"><strong>TOTAL ENCLOSED</strong></td>
	<td><cfinput TYPE="text" SIZE="30" NAME="TotalEnclosed" /></td>
</tr>
</table>
 
 
 
 
<h1>PAYMENT INFORMATION</h1>
 
<p>To remit payment, you may print this form and mail it to Ambulatory Surgery Foundation with a check (see information below). Or, submit your credit card information, below. Credit card information is submitted through a secure connection, certified by SecureTrust.</p>
 
<p class="float-left"><cfinput type="Checkbox" name="CheckEnclosed"  class="border0" /> Enclosed is a check, payable to Ambulatory Surgery Foundation.</p> 
 
<p class="float-right">Check # <cfinput TYPE="text" SIZE="30" NAME="CheckNumber" /></p>
 
<div class="clear-both"></div>
 
<p class="float-left"><cfinput type="Checkbox" name="AuthorizeCharge" class="border0" /> I authorize Ambulatory Surgery Foundation to charge my:</p>
 
<p class="float-right">
<select name="CreditCard" class="ChicagoSelect red">
<option value="SelectCard">Select a Credit Card</option>
<option value="Visa">Visa</option>
<option value="MasterCard">MasterCard</option>
<option value="AmericanExpress">American Express</option></select></p>
 
 
<div class="clear-both"></div>
 
 
<table class="uvatable">
<tr>
	<td>Credit Card Number:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardNumber" /></td>
	<td>Expiration Date:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="ExpirationDate" /></td>
</tr>
<tr>
	<td>Printed Cardholder Name:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="PrintedCardHolderName" /></td>
	<td>Zip Code:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CreditCardZIPCode" /></td>
</tr>
<tr>
	<td>Signature (if printing and mailing):</td>
	<td></td>
	<td>CVV#/3-digit #:</td>
	<td><cfinput TYPE="text" SIZE="30" NAME="CVV" /></td>
</tr>
</table>
 
<!--- begin CAPTCHA --->
 
<div class="align-center">
 
<p><em>Kindly identify yourself as human rather than a spam robot? Please enter the characters you see in the image:</em></p>
                
<cfinclude template="captcha.cfm" />
<cfimage action="captcha" fontSize="24" fonts="Times New Roman" difficulty="medium" width="200" height="50" text="#rndString#">
 
<cfinput type="text" name="userInput" message="Provide Captcha-Text Value" tooltip="Provide Captcha Text" required="yes" class="textfield_effect" value="#captcha#" maxlength="8" />
                
<cfinput type="hidden" name="hashVal" value="#rndHash#">
      
	</div>
        
  <!--- end CAPTCHA --->
 
 
		
 
  <!--- submit form --->
<p class="align-center"><cfinput type="submit" name="submit" value="Submit Registration" /></p>
 
 
 
  <!--- close CFFORM --->
</cfform>
 
 
 
<h1>OTHER WAYS TO REGISTER</h1>
 
 
<h2>PRINT THIS FORM AND MAIL OR FAX AS FOLLOWS:</h2>
 
 
 
<p><strong>Mail:</strong> Make checks payable to Ambulatory Surgery Foundation and mail to:
Ambulatory Surgery Foundation, 1012 Cameron St, Alexandria, VA 22314</p>
 
<p><strong>Fax:</strong> Fax registration form with credit card information to 703.836.2090</p>
 
<p><strong>Call:</strong> Call 703.836.5904 to register by phone</p>
 
<p><strong>Cancellation policy:</strong> Written cancellation requests must be received by May 5, 2009. Refunds are subject to a $100 processing fee.
Refunds will not be issued after this date.</p>
 
<p>Fax registration form with credit card information to 703.836.2090.</p>
 
<!--- close CFIF --->
</cfif> 
 
 
 
<p>If you have trouble sending the form, please print and fax to 703.836.2090.</p>
 
	
<p>This information will be used only in conjunction with Ambulatory Surgery Foundation and ASC Association business. We will not share your information with any other organizations.</p>
 
 
<hr />
 
<!--- TrustWave Seal ---> 
<p class="float-left-img"><script type='text/javascript' src='https://sealserver.trustwave.com/seal.js?style=normal'></script></p>
 
 
 <p>Transactions on this web page are secured by Trustwave. Click the Trustwave logo to the left to verify the security of this page.</p>
 
 
  <!--- include secure footer ---> 
<cfinclude template="SiteFooterSecure.cfm" />
 
 
 
conference_data_insert.cfm:
 
<cfif #form.hashval# neq Hash(#form.userInput#)>
  <cfset invalid = 3>
  <cflocation="june2009.cfm?error=#invalid#">
</cfif>
 
<cfif isDefined('FORM.CheckEnclosed')>
<!--- checkbox has been checked and is present in post data --->
<cfset CheckEnclosed = 1>
<cfelse>
<cfset CheckEnclosed = 0>
<!--- checkbox not checked and not present --->
</cfif>
 
<cfif isDefined('FORM.AuthorizeCharge')>
<!--- checkbox has been checked and is present in post data --->
<cfset AuthorizeCharge = 1>
<cfelse>
<cfset AuthorizeCharge = 0>
<!--- checkbox not checked and not present --->
</cfif>
 
<!--- Insert values into database columns --->
<cfquery datasource="ebwebwork" dbname="ascassociation" name="createRegistration">
	INSERT INTO RegistrationEntries (
		FirstName,
		LastName,
		Degree,
		Title,
		FacilityCompany,
		Address1,
		Address2,
		City,
		State,
		Zip,
		Phone,
		Fax,
		Email,
		WebSite,
		RNLicenseNumber,
		MainConference1stAttendeeAmountBefore5May625,
		MainConference2ndAttendeeAmountBefore5May575,
		MainConference3rdAttendeeAmountBefore5May525,
		MainConference4thAttendeeAmountBefore5May500,
		MainConference1stAttendeeAmountAfter5May725,
		MainConference2ndAttendeeAmountAfter5May675,
		MainConference3rdAttendeeAmountAfter5May625,
		MainConference4thAttendeeAmountAfter5May600,
		MainandPreConference1stAttendeeAmountBefore5May825,
		MainandPreConference2ndAttendeeAmountBefore5May775,
		MainandPreConference3rdAttendeeAmountBefore5May725,
		MainandPreConference4thAttendeeAmountBefore5May700,
		MainandPreConference1stAttendeeAmountAfter5May925,
		MainandPreConference2ndAttendeeAmountAfter5May875,
		MainandPreConference3rdAttendeeAmountAfter5May825,
		MainandPreConference4thAttendeeAmountAfter5May800,
		BeckersASCReviewSpecialDiscount,
		ASCReviewSubscriberDiscountOneHundred,
		TotalEnclosed,
		CheckEnclosed,
		CheckNumber,
		AuthorizeCharge,
		CreditCard,
		CreditCardNumber,
		ExpirationDate,
		PrintedCardHolderName,
		CreditCardZIPCode,
		CVV,
		DateCreated)
	VALUES(
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#FirstName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#LastName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Degree#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Title#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#FacilityCompany#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Address1#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Address2#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#City#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#State#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Zip#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Phone#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Fax#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#Email#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#WebSite#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#RNLicenseNumber#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference1stAttendeeAmountBefore5May625#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference2ndAttendeeAmountBefore5May575#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference3rdAttendeeAmountBefore5May525#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference4thAttendeeAmountBefore5May500#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference1stAttendeeAmountAfter5May725#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference2ndAttendeeAmountAfter5May675#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference3rdAttendeeAmountAfter5May625#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainConference4thAttendeeAmountAfter5May600#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference1stAttendeeAmountBefore5May825#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference2ndAttendeeAmountBefore5May775#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference3rdAttendeeAmountBefore5May725#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference4thAttendeeAmountBefore5May700#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference1stAttendeeAmountAfter5May925#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference2ndAttendeeAmountAfter5May875#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference3rdAttendeeAmountAfter5May825#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#MainandPreConference4thAttendeeAmountAfter5May800#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#BeckersASCReviewSpecialDiscount#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#ASCReviewSubscriberDiscountOneHundred#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#TotalEnclosed#">,
		<cfqueryparam cfsqltype="cf_sql_bit" value="#CheckEnclosed#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CheckNumber#">,
		<cfqueryparam cfsqltype="cf_sql_bit" value="#AuthorizeCharge#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCard#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCardNumber#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#ExpirationDate#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#PrintedCardHolderName#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CreditCardZIPCode#">,
		<cfqueryparam cfsqltype="cf_sql_varchar" value="#CVV#">,
		<cfqueryparam cfsqltype="cf_sql_timestamp" value="#now()#">);
	SELECT scope_identity() AS ident
</cfquery>
		  
<!--- pass info back to previous page --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
<html>
<head>
	<title>Registration Submitted</title>
</head>
 
<body onLoad="document.form.submit();">
 
 <cfoutput>
 
<form name="form" method="post" action="june2009.cfm">
 
<!--- set value from newly created RegistrationID --->
<input type="hidden" name="RegistrationID" value="#createRegistration.ident#">
<!--- set rest of values from submitted form --->
<input type="hidden" name="FirstName" value="#FORM.FirstName#">
<input type="hidden" name="LastName" value="#FORM.LastName#">
<input type="hidden" name="Degree" value="#FORM.Degree#">
<input type="hidden" name="Title" value="#FORM.Title#">
<input type="hidden" name="FacilityCompany" value="#FORM.FacilityCompany#">
<input type="hidden" name="Address1" value="#FORM.Address1#">
<input type="hidden" name="Address2" value="#FORM.Address2#">
<input type="hidden" name="City" value="#FORM.City#">
<input type="hidden" name="State" value="#FORM.State#">
<input type="hidden" name="Zip" value="#FORM.Zip#">
<input type="hidden" name="Phone" value="#FORM.Phone#">
<input type="hidden" name="Fax" value="#FORM.Fax#">
<input type="hidden" name="Email" value="#FORM.Email#">
<input type="hidden" name="WebSite" value="#FORM.WebSite#">
<input type="hidden" name="RNLicenseNumber" value="#FORM.RNLicenseNumber#">
<input type="hidden" name="MainConference1stAttendeeAmountBefore5May625" value="#FORM.MainConference1stAttendeeAmountBefore5May625#">
<input type="hidden" name="MainConference2ndAttendeeAmountBefore5May575" value="#FORM.MainConference2ndAttendeeAmountBefore5May575#">
<input type="hidden" name="MainConference3rdAttendeeAmountBefore5May525" value="#FORM.MainConference3rdAttendeeAmountBefore5May525#">
<input type="hidden" name="MainConference4thAttendeeAmountBefore5May500" value="#FORM.MainConference4thAttendeeAmountBefore5May500#">
<input type="hidden" name="MainConference1stAttendeeAmountAfter5May725" value="#FORM.MainConference1stAttendeeAmountAfter5May725#">
<input type="hidden" name="MainConference2ndAttendeeAmountAfter5May675" value="#FORM.MainConference2ndAttendeeAmountAfter5May675#">
<input type="hidden" name="MainConference3rdAttendeeAmountAfter5May625" value="#FORM.MainConference3rdAttendeeAmountAfter5May625#">
<input type="hidden" name="MainConference4thAttendeeAmountAfter5May600" value="#FORM.MainConference4thAttendeeAmountAfter5May600#">
<input type="hidden" name="MainandPreConference1stAttendeeAmountBefore5May825" value="#FORM.MainandPreConference1stAttendeeAmountBefore5May825#">
<input type="hidden" name="MainandPreConference2ndAttendeeAmountBefore5May775" value="#FORM.MainandPreConference2ndAttendeeAmountBefore5May775#">
<input type="hidden" name="MainandPreConference3rdAttendeeAmountBefore5May725" value="#FORM.MainandPreConference3rdAttendeeAmountBefore5May725#">
<input type="hidden" name="MainandPreConference4thAttendeeAmountBefore5May700" value="#FORM.MainandPreConference4thAttendeeAmountBefore5May700#">
<input type="hidden" name="MainandPreConference1stAttendeeAmountAfter5May975" value="#FORM.MainandPreConference1stAttendeeAmountAfter5May925#">
<input type="hidden" name="MainandPreConference2ndAttendeeAmountAfter5May875" value="#FORM.MainandPreConference2ndAttendeeAmountAfter5May875#">
<input type="hidden" name="MainandPreConference3rdAttendeeAmountAfter5May825" value="#FORM.MainandPreConference3rdAttendeeAmountAfter5May825#">
<input type="hidden" name="MainandPreConference4thAttendeeAmountAfter5May800" value="#FORM.MainandPreConference4thAttendeeAmountAfter5May800#">
<input type="hidden" name="BeckersASCReviewSpecialDiscount" value="#FORM.BeckersASCReviewSpecialDiscount#">
<input type="hidden" name="ASCReviewSubscriberDiscountOneHundred" value="#FORM.ASCReviewSubscriberDiscountOneHundred#">
<input type="hidden" name="TotalEnclosed" value="#FORM.TotalEnclosed#">
 
 
<cfif isdefined("form.CheckEnclosed")>
<input type="hidden" name="CheckEnclosed" value="#FORM.CheckEnclosed#">
<cfelse>
<input type="hidden" name="CheckEnclosed" value="0">
</cfif>
 
 
<input type="hidden" name="CheckNumber" value="#FORM.CheckNumber#">
 
<cfif isdefined("form.AuthorizeCharge")>
<input type="hidden" name="AuthorizeCharge" value="#FORM.AuthorizeCharge#">
<cfelse>
<input type="hidden" name="AuthorizeCharge" value="0">
</cfif>
 
 
<input type="hidden" name="CreditCard" value="#FORM.CreditCard#">
<input type="hidden" name="CreditCardNumber" value="#FORM.CreditCardNumber#">
<input type="hidden" name="ExpirationDate" value="#FORM.ExpirationDate#">
<input type="hidden" name="PrintedCardHolderName" value="#FORM.PrintedCardHolderName#">
<input type="hidden" name="CreditCardZIPCode" value="#FORM.CreditCardZIPCode#">
<input type="hidden" name="CVV" value="#FORM.CVV#">
<input type="hidden" name="DateCreated" value="#DateFormat(now(), "mm/dd/yyyy")#">
 
</form>
 </cfoutput>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Eric BourlandAuthor Commented:
OK, I copied your code exactly into the two files. It looks much the same to me? I will try it ...

Rats. Still not liking the cflocation:

 Invalid CFML construct found on line 3 at column 14.
ColdFusion was looking at the following text:

=

The CFML compiler was processing:

    * A cflocation tag beginning on line 3, column 4.
    * A cflocation tag beginning on line 3, column 4.

 
The error occurred in D:\websites\ascassociation.org\conference_data_insert.cfm: line 3

1 : <cfif #form.hashval# neq Hash(#form.userInput#)>
2 :   <cfset invalid = 3>
3 :   <cflocation="june2009.cfm?error=#invalid#">
4 : </cfif>
5 :  
0
Gurpreet Singh RandhawaCEOCommented:
i think i had too much beer today:

here is the correct syntax for cflocation

tell me one thing:

june2009.cfm is the one page.

conference_insert_data.cfm is another page

right
<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
<cflocation addtoken="no" url="june.cfm2009.cfm?error=#invalid#">

Open in new window

0
Eric BourlandAuthor Commented:
LOL.

I do not mean to interrupt your Friday night beer session mate. =) I feel quite guilty.

Yes: june2009.cfm and conference_insert_data.cfm are separate pages.

I will try: <cflocation addtoken="no" url="june.cfm2009.cfm?error=#invalid#">

Trying it now ... crossing fingers.

OK, we are making progress. Now, when I process the form, entering incorrect CAPTCHA characters,
I get returned to: https://www.ascassociation.org/june2009.cfm?error=3

So the form did not process when I entered incorrect CAPTCHA.

BUT -- it DOES process correctly when I enter correct CAPTCHA.

We are on the right track.

So, I need to cflocate the user to an error page, or show an error message in a box. How can I do that?

If you are in the Chicago area, I'll gladly treat you to a few rounds of good beer.

Eric
0
Gurpreet Singh RandhawaCEOCommented:
Dude Thanks For everything you offer me, I am not nearby Chicago. far away from there.

Anyways.

If you want to locate the user to error page you can always do something like this:


<input id="gwProxy" type="hidden"><!--Session data--><input onclick="jsCall();" id="jsProxy" type="hidden">
<cflocation addtoken="no" url="error.cfm?error=#invalid#">
 
in the error.cfm, Make the page bit beatutiful using CSS Stuff. 
 
Then define it in there 
 
the <cfif isdefined('error')><cfif error is 3>error! captcha wrong</cfif></cfif>
 
Then a put a link beneath the error message to link back to june2009.cfm pageas:
 
<a href="june2009.cfm">Back to registration</a>
 
or
 
try something like this:
 
<a href="javascript:history.back(-2);">Back to registration</a>

Open in new window

0
Eric BourlandAuthor Commented:
Got it. I will work on this and get to you in a few.

Thank you!
0
Eric BourlandAuthor Commented:
myselfrandhawa, thank you for your patient help. I learned a great deal during this exercise and I am very grateful. Enjoy the weekend.

All best.

Eric
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ColdFusion Language

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.