Hi Bob, If are simply trying to validate e-mail format, you might want to take a look at the validate attribute of the <cfinput> which can be evaluated at submission.
Validate: A valid e-mail address of the form [email protected]. ColdFusion validates the format only; it does not check that entry is a valid active e-mail address. As for checking for the .edu component, try something like below. <cfset email_ext = right(#form.email_address#,4)> <cfif IsDefined('email_ext') AND Trim(email_ext) neq ".edu"> <p>Place error message here</p> <cfelse> <p>Complete the process code here</p> </cfif> The above code would be included in your processing/action section. It will get the last for elements of the e-mail address i.e.: .*** and then the IsDefined process will let you evaluate if it is equal to .edu which you then can process accordingly. Leonard ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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-newbie/message.cfm/messageid:4702 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
