you may want to use some javascript to check the email address before 
sending it to the server:

<script language="javascript" type="text/javascript">
<!--
var emailexp = /^[a-z][a-z_0-9\.]+@[a-z_0-9\.\-]+\.[a-z]{3}$/i
function isValid(pattern, str) {
 return pattern.test(str);
}
function validate(form) {
    //Check the email text box for a valid entry
     if (!isValid(emailexp,form.txtEmail.value)) {
      alert("Invalid email address");
      form.txtEmail.focus();
      return false;
     }
    alert("Submitting form.");
}
-->
</script>


  ----- Original Message ----- 
  From: Robert Orlini 
  To: CF-Talk 
  Sent: Wednesday, February 06, 2002 12:01 PM
  Subject: email verify


  Hello,

  Anyone out there have a simple email verification script in CF? I need
  to make sure customers input the full and correct syntax of their 
email
  address before they submit a form.

  Thanks.

  
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to