This content has been marked as final. Show 6 replies
Quickest way is to use cfform validation:
<cfform name="someForm" action="" format="html" preservedata="yes">
<cfinput type="text" validate="email" validateat="onsubmit,onserver" required="yes" message="Please Enter Valid Email">
You'll need to use a REGEX (regular expression) script. Do a google search for 'coldfusion email regex'..finds plenty,
Finding a lot of regex that work great, problem is that I need to validate a specific domain (ex. us.mycompany.com).
I've tried manipulating this expression without luck:
Email: <CFINPUT TYPE="Text" NAME="email"
MESSAGE="Email is improperly formatted">
If you have addresses like firstname.lastname@example.org it may need to be modified.
I didn't read your example address very well the first time.
Thanks, that did the trick.