complex email validation script

M

Manish

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" <[email protected]>, "Java Programming"
<[email protected]>; <[email protected]>, (e-mail address removed)

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
 
E

Evertjan.

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" <[email protected]>, "Java Programming"
<[email protected]>; <[email protected]>, (e-mail address removed)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top