SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: e-mail checking

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2008
    Location
    England
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    e-mail checking

    i am creating an improved e-mail script for a registration page for next year registrations. I found out that alot of people tend to insert an invalid e-mail address into the database.

    i know there are regular expressions to check if the e-mail is valid but the issue is that people always end up with one character out e.g.

    instead of james@uc3.co.uk,
    some people put jame@uc3.co.uk

    I was wondering is there a way to check if the e-mail is active before the reponse e-mail is send when the submit button is pressed?

    i hope that makes some sense...

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no foolproof way, due to the way mail servers work.

    Make them enter the email twice, and make sure they match. Optionally, you can use some javascript to prevent them from just copy pasting what they typed into the first email field, to help ensure they actually type it out twice.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •