Valid email
#5

Quote:
Originally Posted by SoLetsGO
Посмотреть сообщение
You could also check if the e-mail provider is valid. So you have a list of many e-mail providers which you found.
like gmail,freenet,aol etc. Then you make an array of them and when a play enters the e-mail you check if the e-mail provider is listed in the array.
That's really a dumb solution, to be honest. I have an e-mail address under my own domain, which will surely not be in your array.

The most thorough solution is a regular expression. But if you don't want to use that plugin you can probably also get by using sscanf, using something like:
PHP код:
"{s[256]'@'s[256]'.'s[256]}" 
Since it's a quiet expression (curly braces) string size does not matter.
Reply


Messages In This Thread
Valid email - by MerryDeer - 29.08.2016, 06:24
Re: Valid email - by DarkSkull - 29.08.2016, 07:43
Re: Valid email - by SoLetsGO - 29.08.2016, 07:57
Re: Valid email - by Sanady - 29.08.2016, 10:00
Re: Valid email - by Vince - 29.08.2016, 14:57

Forum Jump:


Users browsing this thread: 2 Guest(s)