Reply
Multiple email address validation script
Old 11-22-2006, 03:53 PM Multiple email address validation script
Skilled Talker

Posts: 63
Hi folks

I am using this comprehensive script
http://javascript.internet.com/forms...alidation.html

to validate a form email address input.

However, I'd now like to validate two different addresses on the same form.

onSubmit="return emailCheck(this.email.value)"

The code to check email name 'email' is
onSubmit="return emailCheck(this.email.value)"

So I am just wondering how to put two checks on two different email inputs. I have not got it to work so far!

Thanks for any ideas

Best wishes

Tony

Last edited by soon : 11-22-2006 at 03:54 PM.
soon is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 11-22-2006, 06:51 PM Re: Multiple email address validation script
logic ali's Avatar
Skilled Talker

Posts: 85
Quote:
Originally Posted by soon View Post
Hi folks

I am using this comprehensive script
http://javascript.internet.com/forms...alidation.html

to validate a form email address input.

However, I'd now like to validate two different addresses on the same form.

onSubmit="return emailCheck(this.email.value)"

The code to check email name 'email' is
onSubmit="return emailCheck(this.email.value)"

So I am just wondering how to put two checks on two different email inputs. I have not got it to work so far!
Try:
Code:
onSubmit="return emailCheck(this.email.value)&&emailCheck(this.email2.value)"
logic ali is offline
Reply With Quote
View Public Profile
 
Old 11-22-2006, 07:38 PM Re: Multiple email address validation script
Skilled Talker

Posts: 63
Cool, that works fine, thanks!
soon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Multiple email address validation script
 

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12745 seconds with 13 queries