One way is like the following but, if you know the domain is always the same
you should just have the user enter their user name. You can dynamically
append the domain if it's needed. This cuts down on user entry time, user
error, and development time to account for other variances that can occur.
<!--- For this example the domain is 'mydomain.com' --->
<CFIF Compare(Right(FORM.Email,13), "@mydomain.com") NEQ 0>
<!--- Throw an error --->
</CFIF>
Steve
-----Original Message-----
From: Warrick, Mark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 18, 2000 9:41 PM
To: CF-Talk
Cc: [EMAIL PROTECTED]
Subject: RE: Checking/Validating Email
If every email address contains the same domain name, then why do you care
what they put after the @ symbol? Just ask for their account name.
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: James Taavon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 18, 2000 6:36 PM
> To: CF-Talk
> Subject: Checking/Validating Email
>
>
> This is a multi-part message in MIME format.
> --------------47385AA601667E1AC68692E3
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> FYI, I first checked the archives, but did not see what I was looking
> for.
>
> I want to make sure that email address (after the @) is in the proper
> syntax before a form is processed. Say for example [EMAIL PROTECTED] is
> what I am checking against...if the user types in [EMAIL PROTECTED] can I
> have CF respond by alerting the user that they typed their email address
> incorrectly. I will be checking against a gov't email so every user will
> have the same thing after the @ symbol.
>
> Thanks in advance!
> --------------47385AA601667E1AC68692E3
> Content-Type: text/x-vcard; charset=us-ascii;
> name="jtaavon.vcf"
> Content-Transfer-Encoding: 7bit
> Content-Description: Card for James Taavon
> Content-Disposition: attachment;
> filename="jtaavon.vcf"
>
> begin:vcard
> n:Taavon;James
> tel;cell:(443) 506-2117
> tel;fax:(410) 333-5203
> tel;work:(410) 767-3415
> x-mozilla-html:FALSE
> org:Department of Labor, Licensing and Regulation;Office of
> Information and Technology
> version:2.1
> email;internet:[EMAIL PROTECTED]
> title:Senior Web Developer
> adr;quoted-printable:;;1100 N. Eutaw Street,=0D=0ARoom
> 203;Baltimore;MD;21201;
> fn:James Taavon
> end:vcard
>
> --------------47385AA601667E1AC68692E3--
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/[email protected]/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=sts or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]