By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,587 Members | 1,891 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,587 IT Pros & Developers. It's quick & easy.

complex email validation script

P: n/a
I want to validate the following emails in the javascript, all emails
are valid samples

1. "," comma exists in name
2. Emails can be seperated by comma ",", semicolon ";"
3. Name and email both can be present
4. Only name not allowed
5. Only email can be present
6. Single email may also be surrounded by "<" and ">"

"PHP, Programming" <ph*@server.com>, "Java Programming"
<ja**@server.com>; <fo*@google.com>, ba*@google.com

Please suggest if such script is already available from some site.
Please refer a site for it.

function ValidateEmail(emailtextfield) {

...
return true/false

}
Thanks.

Manish

Aug 10 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Manish wrote on 10 aug 2006 in comp.lang.javascript:
I want to validate the following emails in the javascript,
emails? You mean emailaddresses, I suppose.
all emails are valid samples
Uh?
1. "," comma exists in name
2. Emails can be seperated by comma ",", semicolon ";"
3. Name and email both can be present
4. Only name not allowed
5. Only email can be present
6. Single email may also be surrounded by "<" and ">"
Quite a list! I doubt others would have had exactly the same
requirements.
"PHP, Programming" <ph*@server.com>, "Java Programming"
<ja**@server.com>; <fo*@google.com>, ba*@google.com
What do you mean by these?
Please suggest if such script is already available from some site.
Please refer a site for it.

function ValidateEmail(emailtextfield) {

...
return true/false

}
What have you programmed so far and where did you go wrong?

Or do you want others to programme for you?

If the latter please consider a payed programmer.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.