Jump to content

email validation


RobertP

Recommended Posts

so i tried to search and got this lovely message..

Unable to access the search daemon

 

i need a script to validate email's, ALL emails, not just the popular ones (eg: hotmail,gmail.etc).

 

i have this..

	if(!preg_match("/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i",$email)){
		$style->set('page_error','Invalid email adress.');
	}

 

is this correct? i found on google..

 

PS: Someone should make a sticky and add a cheat-sheet table to it ...

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.