Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > complex email validation script

Reply
Thread Tools

complex email validation script

 
 
Manish
Guest
Posts: n/a
 
      08-10-2006
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" <>, "Java Programming"
<>; <>,

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

 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      08-10-2006
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" <>, "Java Programming"
> <>; <>,


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)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How complex is complex? Kottiyath Python 22 03-28-2009 10:11 PM
wsdl2java: method parameter a complex type that extends another complex type Robert Mark Bram Java 0 02-04-2007 10:06 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
For expert on complex loops (reposted) - complex looping problem news.amnet.net.au Java 1 04-13-2004 07:10 AM
Complex validation of business rules possible with XML Schema? Any other validation "languages"? Mike XML 1 11-21-2003 07:27 PM



Advertisments