I have implemented Lyla successfully, but for some reason I am not able
to validate that the submit button was pushed.

 

Processing Page

<cfif Isdefined("form.button")>

<cfelse>

<cflocation url="orientation_test.cfm">

</cfif>

 

Form Page

<cfform id="captchaForm" action="orientation_submit.cfm" method="post"
onSubmit="return
validateCaptcha(captchaForm.captchaHash.value,captchaForm.captchaText.va
lue);">

<cfoutput>

<input type="hidden" name="date" value="#dateformat(now(), "MMMM DD,
YYYY")#" />

<input type="hidden" name="ip" value="#user_ip#" />

</cfoutput>

Name: <input type="text" name="name" size="30" />

Email: <cfinput type="text" name="email" size="30"
onFocus="this.value=''" required="yes" message="You must enter a valid
email" />

Office Phone: <cfinput type="text" name="ophone" required="yes"
message="Please enter your office phone number" validate="telephone"
mask="999-999-9999" />

Home Phone: <cfinput type="text" name="hphone" validate="telephone"
mask="999-999-9999" />

<input type="hidden" name="captchaHash" value="#variables.captcha.hash#"
/>

<span style="font-size:11px;">Can't Read the Captcha? <a href="##"
onClick="newCaptcha();">Click here to generate a new one</a></span>

<input type="text" name="captchaText" size="6" /> <img
src="#variables.displayTemplate#.cfm?hashReference=#variables.captcha.ha
sh#" id="captchaImage" />

<input type="submit" value="Register" name="button" />

</cfform>

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu <http://www.esu.edu> 

[email protected] <mailto:[email protected]> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327218
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to