yami007 Posted October 20, 2008 Share Posted October 20, 2008 I made a contact us page, and i dont know how to verify user's address email is valid, how can i do that? waiting for your help !! Quote Link to comment Share on other sites More sharing options...
.josh Posted October 21, 2008 Share Posted October 21, 2008 google email verification. Quote Link to comment Share on other sites More sharing options...
yami007 Posted October 21, 2008 Author Share Posted October 21, 2008 What ?? google email verification?? Quote Link to comment Share on other sites More sharing options...
DarkWater Posted October 21, 2008 Share Posted October 21, 2008 He told you to Google 'email verification' since it's such a common topic, which you obviously didn't research or anything. =/ Quote Link to comment Share on other sites More sharing options...
yami007 Posted October 21, 2008 Author Share Posted October 21, 2008 man, i researched on google but i ddnt find what i wanted.... Quote Link to comment Share on other sites More sharing options...
.josh Posted October 21, 2008 Share Posted October 21, 2008 Then maybe you should be more specific with your question here, because you asked "How do I verify an email address?" and typing in "php email verification" into google yields an untold number of results. Quote Link to comment Share on other sites More sharing options...
Psycho Posted October 21, 2008 Share Posted October 21, 2008 This will ensure a properly formatted email function validEmail($emailStr) { $format_test = '/^[\w\+-]+([\.]?[\w\+-])*@[a-zA-Z0-9]{2,}([\.-]?[a-zA-Z0-9]{2,})*\.[a-zA-Z]{2,4}$/'; $length_test = '/^(.{1,64})@(.{4,255})$/'; return (preg_match($format_test,$emailStr) && preg_match($length_test,$emailStr)); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.