Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsWeb Design & DevelopmentGeneral Web Design Discussion right
left right
craig2u
post Sep 30 2009, 08:45 PM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 30-September 09
Member No.: 112,112



Sometime my visitors mistype their email address. I want to verify it so their message is not delivered until the email field is ok. Something like checking for @ character, etc.
Go to the top of the page 
 
  + Quote Post
 
Start new topic
Replies
Ed
post Oct 1 2009, 11:10 AM
Post #2


Outrageously Uber Ninja
*******

Group: Administrators
Posts: 2,831
Joined: 11-March 07
From: UK
Member No.: 9



PHP5 comes with a fantastic little filter library:

CODE
if(filter_var($email, FILTER_VALIDATE_EMAIL))
{
    // Email format is correct
}


If you're not on Zymic hosting you can extend the check to start a smtp session with the domain's mail exchange servers and check the email address actually exists. This method isn't full proof if someone sets their MX records to point to a mailserver which has been setup as a relay.

Email verification is the best method to ensure the mailbox actually exists.
Go to the top of the page 
 
  + Quote Post

Posts in this topic

 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 22nd May 2013 - 04:37 PM